Delete sw.js (#8520)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent ecd36a4ec1
commit aac16b7134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 29
      app/scripts/platforms/sw.js

@ -1,29 +0,0 @@
class SwPlatform {
/**
* Reloads the platform
*/
reload () {
// TODO: you can't actually do this
/** @type {any} */ (global).location.reload()
}
/**
* Opens a window
* @param {{url: string}} opts - The window options
*/
openWindow (opts) {
// TODO: this doesn't actually work
/** @type {any} */ (global).open(opts.url, '_blank')
}
/**
* Returns the platform version
* @returns {string}
*/
getVersion () {
return '<unable to read version>'
}
}
export default SwPlatform
Loading…
Cancel
Save