summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2017-11-21 05:37:29 +0900
committerGitHub <noreply@github.com>2017-11-21 05:37:29 +0900
commitcad1e0458ff7f24c984ccc64d18759d9b9da451a (patch)
treeebdc5b212eb8b7787b63a75f0a93668e4be2eeca /src
parentwip (diff)
downloadsharkey-cad1e0458ff7f24c984ccc64d18759d9b9da451a.tar.gz
sharkey-cad1e0458ff7f24c984ccc64d18759d9b9da451a.tar.bz2
sharkey-cad1e0458ff7f24c984ccc64d18759d9b9da451a.zip
Update mios.ts
Diffstat (limited to 'src')
-rw-r--r--src/web/app/common/mios.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/app/common/mios.ts b/src/web/app/common/mios.ts
index a98ef5f477..5e76d82a38 100644
--- a/src/web/app/common/mios.ts
+++ b/src/web/app/common/mios.ts
@@ -189,8 +189,8 @@ export default class MiOS extends EventEmitter {
// Register
this.api('sw/register', {
endpoint: subscription.endpoint,
- auth: subscription.getKey('auth') ? btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('auth')))) : '',
- publickey: subscription.getKey('p256dh') ? btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('p256dh')))) : ''
+ auth: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('auth')))),
+ publickey: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('p256dh'))))
});
}).then(() => {
console.log('Server Stored Subscription.');