Fix linting errors

This commit is contained in:
Cecylia Bocovich 2019-07-02 13:08:58 -04:00
parent 2cd69f6f25
commit d1bcc3cc3e

View file

@ -72,7 +72,7 @@ class WebExtUI extends UI
initToggle: -> initToggle: ->
try try
getting = chrome.storage.local.get("snowflake-enabled", (result) => getting = chrome.storage.local.get("snowflake-enabled", (result) =>
@enabled = result['snowflake-enabled'] @enabled = result['snowflake-enabled']
update() update()
chrome.browserAction.setIcon chrome.browserAction.setIcon
@ -103,7 +103,8 @@ class WebExtUI extends UI
path: path:
32: "icons/status-" + (if @enabled then "on" else "off") + ".png" 32: "icons/status-" + (if @enabled then "on" else "off") + ".png"
@postActive() @postActive()
storing = chrome.storage.local.set({"snowflake-enabled":@enabled}, () -> log "Stored toggle state") storing = chrome.storage.local.set({ "snowflake-enabled": @enabled },
() -> log "Stored toggle state")
onDisconnect: (port) => onDisconnect: (port) =>
@port = null @port = null