Skip to content

Commit b5e852f

Browse files
author
Perki
committed
Using strandard Pryv.Browser.serviceInfoFromUrl()
1 parent c260d86 commit b5e852f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view-and-share/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function showLoginMessage() {
6262
// following the APP GUIDELINES: https://api.pryv.com/guides/app-guidelines/
6363
const urlParams = new URLSearchParams(window.location.search);
6464
const apiEndpoint = urlParams.get('pryvApiEndpoint');
65-
const serviceInfoUrl = urlParams.get('pryvServiceInfoURL') || 'https://reg.pryv.me/service/info';
65+
const serviceInfoUrl = Pryv.Browser.serviceInfoFromUrl() || 'https://reg.pryv.me/service/info';
6666

6767
var service = null; // will be initialized after setupAuth;
6868
var username = null; // will be inialized after AUTHORIZED auth State is received

0 commit comments

Comments
 (0)