aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-08-25 07:23:30 +0200
committerThomas Lange <code@nerdmind.de>2017-08-25 07:23:30 +0200
commit4c30f91c94eb739a6a82d49f635a0e2a21d73690 (patch)
treeb69ff95c2fc5edfb2f990b1a6b204ffbc337cd3b
parent2ad5b1537082257cfd8b26e6fb87380ec9b0ddea (diff)
downloadbigpipe-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-xstatic/bigpipe.js6
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;