mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Delete window.js (#8521)
This commit is contained in:
parent
aac16b7134
commit
664cac0bd5
@ -1,27 +0,0 @@
|
|||||||
class WindowPlatform {
|
|
||||||
/**
|
|
||||||
* Reload the platform
|
|
||||||
*/
|
|
||||||
reload () {
|
|
||||||
/** @type {any} */ (global).location.reload()
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Opens a window
|
|
||||||
* @param {{url: string}} opts - The window options
|
|
||||||
*/
|
|
||||||
openWindow (opts) {
|
|
||||||
/** @type {any} */ (global).open(opts.url, '_blank')
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the platform version
|
|
||||||
* @returns {string}
|
|
||||||
*/
|
|
||||||
getVersion () {
|
|
||||||
return '<unable to read version>'
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export default WindowPlatform
|
|
Loading…
x
Reference in New Issue
Block a user