ZeroOmega/omega-target-chromium-extension/omega_target_web_basics.coffee

14 lines
447 B
CoffeeScript
Raw Normal View History

2014-09-20 11:49:04 -04:00
window.OmegaTargetWebBasics =
getLog: (callback) ->
callback(localStorage['log'] || '')
getError: (callback) ->
callback(localStorage['logLastError'] || '')
2014-09-20 11:49:04 -04:00
getEnv: (callback) ->
extensionVersion = chrome.runtime.getManifest().version
callback({
extensionVersion: extensionVersion
projectVersion: extensionVersion
userAgent: navigator.userAgent
})
getMessage: chrome.i18n.getMessage.bind(chrome.i18n)