summaryrefslogtreecommitdiff
path: root/js/tool.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-07-07 16:34:40 -0400
committerJules Laplace <jules@okfoc.us>2015-07-07 16:34:40 -0400
commit600f28f73e13f5351f870833a0fd0dccba51afed (patch)
tree5fd957d6429cd96d105211b32e06a27170a081c0 /js/tool.js
parent861b0f4906829c5d83d4f126e2c5f38cd99ee650 (diff)
remember state of certain tools
Diffstat (limited to 'js/tool.js')
-rw-r--r--js/tool.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/tool.js b/js/tool.js
index 9404b1c..360e79f 100644
--- a/js/tool.js
+++ b/js/tool.js
@@ -33,6 +33,7 @@ var Checkbox = Tool.extend({
update: function(state){
if (state) this.el.innerHTML = "x " + this.name
else this.el.innerHTML = "_ " + this.name
+ if (this.memorable) { localStorage.setItem("ascii.tools." + this.name, !! state) }
}
})