You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
464 B
27 lines
464 B
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>'
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = WindowPlatform
|
|
|