We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dfed8c commit 993766cCopy full SHA for 993766c
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
25
+ }/safari_api/v1/instances/${encodeURIComponent(this.instanceId)}`;
26
27
if (this._deviceId !== null) {
28
return;
0 commit comments