mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +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
|