forget everything about a pad when you forget it
This commit is contained in:
parent
b8a3a4d188
commit
c6bdb7506d
@ -116,6 +116,14 @@ define([
|
|||||||
return pad.href !== href;
|
return pad.href !== href;
|
||||||
});
|
});
|
||||||
setRecentPads(recentPads);
|
setRecentPads(recentPads);
|
||||||
|
|
||||||
|
var hash;
|
||||||
|
href.replace(/#(.*)$/, function (h) { hash = h; });
|
||||||
|
if (!hash) { return; }
|
||||||
|
Object.keys(localStorage).forEach(function (k) {
|
||||||
|
if (k.indexOf(hash) === 0) { localStorage.removeItem(k); }
|
||||||
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var rememberPad = common.rememberPad = window.rememberPad = function (title) {
|
var rememberPad = common.rememberPad = window.rememberPad = function (title) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user