ZeroOmega/omega-target-chromium-extension/omega_target_web_basics.coffee
2014-09-21 00:01:16 +08:00

12 lines
372 B
CoffeeScript

window.OmegaTargetWebBasics =
getLog: (callback) ->
callback(localStorage['log'] || '')
getEnv: (callback) ->
extensionVersion = chrome.runtime.getManifest().version
callback({
extensionVersion: extensionVersion
projectVersion: extensionVersion
userAgent: navigator.userAgent
})
getMessage: chrome.i18n.getMessage.bind(chrome.i18n)