Untitled
unknown
plain_text
a year ago
387 B
5
Indexable
function listenLocalStorage(callback) { if (typeof (Storage.prototype || {}).setItem === 'function') { var originalSetItem = Storage.prototype.setItem; Storage.prototype.setItem = function () { callback(arguments[0]); originalSetItem.apply(this, arguments); }; } }
Editor is loading...
Leave a Comment