Skip to content

Commit e8c5f7b

Browse files
committed
chore: pass platform and appType to getAppEntitlements api
1 parent a3a391e commit e8c5f7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/login-service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ define(function (require, exports, module) {
253253
const accountBaseURL = LoginService.getAccountBaseURL();
254254
const language = brackets.getLocale();
255255
const currentVersion = window.AppConfig.apiVersion || "1.0.0";
256-
let url = `${accountBaseURL}/getAppEntitlements?lang=${language}&version=${currentVersion}`;
256+
let url = `${accountBaseURL}/getAppEntitlements?lang=${language}&version=${currentVersion}`+
257+
`&platform=${Phoenix.platform}&appType=${Phoenix.isNativeApp ? "desktop" : "browser"}}`;
257258
let fetchOptions = {
258259
method: 'GET',
259260
headers: {

0 commit comments

Comments
 (0)