Untitled
unknown
plain_text
2 years ago
387 B
7
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