We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dfed8c commit 67ee6aaCopy full SHA for 67ee6aa
src/safari-client.js
@@ -3,7 +3,6 @@ import BaseClient from './base-client';
3
import { version as sdkVersion } from '../package.json';
4
import { RegistrationState } from './base-client';
5
6
-const __url = 'https://localhost:8080';
7
const platform = 'safari';
8
9
export class SafariClient extends BaseClient {
@@ -21,7 +20,9 @@ export class SafariClient extends BaseClient {
21
20
async _init() {
22
let { websitePushId } = await this._fetchWebsitePushId();
23
this._websitePushId = websitePushId;
24
- this._serviceUrl = __url;
+ this._serviceUrl = `${this._baseURL}/safari_api/v1/instances/${encodeURIComponent(
+ this.instanceId
25
+ )}`;
26
27
if (this._deviceId !== null) {
28
return;
0 commit comments