Untitled
Anonymous
plain_text
02/29/2024 5:52 PM
516 B
15
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