File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1034,11 +1034,15 @@ __less = LessPlugin = (function() {
1034
1034
var CustomEvents , LiveReload , k , parent = window ;
1035
1035
CustomEvents = __customevents ;
1036
1036
LiveReload = window . LiveReload = new ( __livereload . LiveReload ) ( window ) ;
1037
- while ( parent !== parent . parent ) {
1038
- parent = parent . parent ;
1039
- if ( parent . LiveReload !== undefined ) {
1040
- parent . LiveReload . shutDown ( ) ;
1037
+ try {
1038
+ while ( parent !== parent . parent ) {
1039
+ parent = parent . parent ;
1040
+ if ( parent . LiveReload !== undefined ) {
1041
+ parent . LiveReload . shutDown ( ) ;
1042
+ }
1041
1043
}
1044
+ } catch ( e ) {
1045
+ // Mostly a security exception about same-origin problem
1042
1046
}
1043
1047
for ( k in window ) {
1044
1048
if ( k . match ( / ^ L i v e R e l o a d P l u g i n / ) ) {
You can’t perform that action at this time.
0 commit comments