mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-04 23:14:56 +01:00
25 lines
311 B
JavaScript
25 lines
311 B
JavaScript
|
|
||
|
class SwPlatform {
|
||
|
|
||
|
//
|
||
|
// Public
|
||
|
//
|
||
|
|
||
|
reload () {
|
||
|
// you cant actually do this
|
||
|
global.location.reload()
|
||
|
}
|
||
|
|
||
|
openWindow ({ url }) {
|
||
|
// this doesnt actually work
|
||
|
global.open(url, '_blank')
|
||
|
}
|
||
|
|
||
|
getVersion () {
|
||
|
return '<unable to read version>'
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = SwPlatform
|