mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-23 07:18:13 -05:00
14 lines
447 B
CoffeeScript
14 lines
447 B
CoffeeScript
window.OmegaTargetWebBasics =
|
|
getLog: (callback) ->
|
|
callback(localStorage['log'] || '')
|
|
getError: (callback) ->
|
|
callback(localStorage['logLastError'] || '')
|
|
getEnv: (callback) ->
|
|
extensionVersion = chrome.runtime.getManifest().version
|
|
callback({
|
|
extensionVersion: extensionVersion
|
|
projectVersion: extensionVersion
|
|
userAgent: navigator.userAgent
|
|
})
|
|
getMessage: chrome.i18n.getMessage.bind(chrome.i18n)
|