Commit 5b8caeeb authored by LianaHus's avatar LianaHus

added event for config change

parent 9d3456a3
...@@ -28,6 +28,7 @@ function Config (storage) { ...@@ -28,6 +28,7 @@ function Config (storage) {
this.items[key] = content this.items[key] = content
try { try {
storage.set(CONFIG_FILE, JSON.stringify(this.items)) storage.set(CONFIG_FILE, JSON.stringify(this.items))
event.emit(key+'_changed', content)
} catch (exception) { } catch (exception) {
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment