mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
24 lines
321 B
JavaScript
24 lines
321 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
|