Fix posting on PaleMoon
This commit is contained in:
parent
2aa77d2207
commit
2589a093e3
@ -2987,6 +2987,9 @@
|
|||||||
return onChange(key);
|
return onChange(key);
|
||||||
});
|
});
|
||||||
return $.forceSync = function(key) {
|
return $.forceSync = function(key) {
|
||||||
|
if ($.frag().childElementCount == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
return onChange(g.NAMESPACE + key);
|
return onChange(g.NAMESPACE + key);
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|||||||
@ -428,6 +428,9 @@ do ->
|
|||||||
$.on window, 'storage', ({key}) -> onChange key
|
$.on window, 'storage', ({key}) -> onChange key
|
||||||
|
|
||||||
$.forceSync = (key) ->
|
$.forceSync = (key) ->
|
||||||
|
# XXX Palemoon
|
||||||
|
return unless $.frag().childElementCount?
|
||||||
|
|
||||||
# Storage events don't work across origins
|
# Storage events don't work across origins
|
||||||
# e.g. http://boards.4chan.org and https://boards.4chan.org
|
# e.g. http://boards.4chan.org and https://boards.4chan.org
|
||||||
# so force a check for changes to avoid lost data.
|
# so force a check for changes to avoid lost data.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user