mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 14:13:08 +02:00
Update mios.ts
This commit is contained in:
parent
c598a9cba2
commit
cad1e0458f
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ export default class MiOS extends EventEmitter {
|
||||||
// Register
|
// Register
|
||||||
this.api('sw/register', {
|
this.api('sw/register', {
|
||||||
endpoint: subscription.endpoint,
|
endpoint: subscription.endpoint,
|
||||||
auth: subscription.getKey('auth') ? btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('auth')))) : '',
|
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')))) : ''
|
publickey: btoa(String.fromCharCode.apply(null, new Uint8Array(subscription.getKey('p256dh'))))
|
||||||
});
|
});
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log('Server Stored Subscription.');
|
console.log('Server Stored Subscription.');
|
||||||
|
|
Loading…
Reference in a new issue