blob: f9e1d84b7af007478370426e71566979399f7c32 (
plain) (
tree)
|
|
const extension = require('extensionizer')
class ExtensionPlatform {
//
// Public
//
reload () {
extension.runtime.reload()
}
openWindow ({ url }) {
extension.tabs.create({ url })
}
getVersion () {
return extension.runtime.getManifest().version
}
getPlatformInfo (cb) {
var info
try {
info = extension.runtime.getPlatformInfo(cb)
} catch (e) {
log.debug(e)
info = undefined
}
return info
}
}
module.exports = ExtensionPlatform
|