diff options
author | Thomas Lange <code@nerdmind.de> | 2017-08-25 07:23:30 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-08-25 07:23:30 +0200 |
commit | 4c30f91c94eb739a6a82d49f635a0e2a21d73690 (patch) | |
tree | b69ff95c2fc5edfb2f990b1a6b204ffbc337cd3b | |
parent | 2ad5b1537082257cfd8b26e6fb87380ec9b0ddea (diff) | |
download | bigpipe-4c30f91c94eb739a6a82d49f635a0e2a21d73690.tar.gz bigpipe-4c30f91c94eb739a6a82d49f635a0e2a21d73690.tar.xz bigpipe-4c30f91c94eb739a6a82d49f635a0e2a21d73690.zip |
Bugfix: Javascript code for stopping the current request moved into a try/catch block to prevent troubles with some creepy Microsoft browsers.
-rwxr-xr-x | static/bigpipe.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/bigpipe.js b/static/bigpipe.js index 7664d61..a27eec9 100755 --- a/static/bigpipe.js +++ b/static/bigpipe.js @@ -347,7 +347,11 @@ var BigPipe = (function() { });
});
- window.stop() || document.execCommand("Stop");
+ try {
+ window.stop();
+ } catch(e) {
+ document.execCommand('Stop');
+ }
BigPipe.pagelets = [];
BigPipe.phase = 0;
|