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