Fix posting on PaleMoon

This commit is contained in:
Zixaphir 2014-12-12 04:01:14 -07:00
parent 2aa77d2207
commit 2589a093e3
2 changed files with 6 additions and 0 deletions

View File

@ -2987,6 +2987,9 @@
return onChange(key);
});
return $.forceSync = function(key) {
if ($.frag().childElementCount == null) {
return;
}
return onChange(g.NAMESPACE + key);
};
})();

View File

@ -428,6 +428,9 @@ do ->
$.on window, 'storage', ({key}) -> onChange key
$.forceSync = (key) ->
# XXX Palemoon
return unless $.frag().childElementCount?
# Storage events don't work across origins
# e.g. http://boards.4chan.org and https://boards.4chan.org
# so force a check for changes to avoid lost data.