We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64b91c9 + 44e5437 commit 22bb9c8Copy full SHA for 22bb9c8
lib/public/livereload.js
@@ -1049,9 +1049,19 @@ __less = LessPlugin = (function() {
1049
})();
1050
1051
// startup
1052
-var CustomEvents, LiveReload, k;
+var CustomEvents, LiveReload, k, parent = window;
1053
CustomEvents = __customevents;
1054
LiveReload = window.LiveReload = new (__livereload.LiveReload)(window);
1055
+try {
1056
+ while (parent !== parent.parent) {
1057
+ parent = parent.parent;
1058
+ if (parent.LiveReload !== undefined) {
1059
+ parent.LiveReload.shutDown();
1060
+ }
1061
1062
+} catch (e) {
1063
+ // Mostly a security exception about same-origin problem
1064
+}
1065
for (k in window) {
1066
if (k.match(/^LiveReloadPlugin/)) {
1067
LiveReload.addPlugin(window[k]);
0 commit comments