mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
23 lines
320 B
JavaScript
23 lines
320 B
JavaScript
const extension = require('extensionizer')
|
|
|
|
class ExtensionPlatform {
|
|
|
|
//
|
|
// Public
|
|
//
|
|
reload () {
|
|
extension.runtime.reload()
|
|
}
|
|
|
|
openWindow ({ url }) {
|
|
extension.tabs.create({ url })
|
|
}
|
|
|
|
getVersion () {
|
|
return extension.runtime.getManifest().version
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = ExtensionPlatform
|