Revert "add chaneglog for forceReload PR"
This reverts commit58dfda760e
. Revert "Fix error handler which showed an error on reload, as the cancel event was triggered after the cacheInvalidated property has been set to true" This reverts commit93263aea3a
. Revert "Workaround for bad cache handling in mattermost platform, fixes #212" This reverts commit61bf5344bf
.
This commit is contained in:
parent
d6553108cf
commit
561a93de8f
|
@ -13,7 +13,6 @@ Release date: TBD
|
||||||
- Changed display of unread messages on the team tabbar, they are now shown as bold text
|
- Changed display of unread messages on the team tabbar, they are now shown as bold text
|
||||||
- Reload only the selected tab and keep its URL on "Reload" and "Clear Cache and Reload".
|
- Reload only the selected tab and keep its URL on "Reload" and "Clear Cache and Reload".
|
||||||
- Disabled `eval()` function for security improvements.
|
- Disabled `eval()` function for security improvements.
|
||||||
- Invalidate cache before load, to make server upgrades easy
|
|
||||||
- Removed misleading shortcuts from tray menu, as they didn't work
|
- Removed misleading shortcuts from tray menu, as they didn't work
|
||||||
- Ctrl/Command+F puts cursor in search box to search in current channel.
|
- Ctrl/Command+F puts cursor in search box to search in current channel.
|
||||||
- Add access to settings through tray menu
|
- Add access to settings through tray menu
|
||||||
|
|
|
@ -324,8 +324,7 @@ var MattermostView = React.createClass({
|
||||||
|
|
||||||
webview.addEventListener('did-fail-load', function(e) {
|
webview.addEventListener('did-fail-load', function(e) {
|
||||||
console.log(thisObj.props.name, 'webview did-fail-load', e);
|
console.log(thisObj.props.name, 'webview did-fail-load', e);
|
||||||
if (e.errorCode === -3 || // An operation was aborted (due to user action).
|
if (e.errorCode === -3) { // An operation was aborted (due to user action).
|
||||||
e.errorCode === -300) { //The operation was aborted to invalidate application cache
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,13 +359,6 @@ var MattermostView = React.createClass({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
webview.addEventListener("did-start-loading", function() {
|
|
||||||
if (!webview.cacheInvalidated) {
|
|
||||||
webview.reloadIgnoringCache();
|
|
||||||
webview.cacheInvalidated = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
webview.addEventListener("dom-ready", function() {
|
webview.addEventListener("dom-ready", function() {
|
||||||
// webview.openDevTools();
|
// webview.openDevTools();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue