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 d487649 commit 789b702Copy full SHA for 789b702
1 file changed
src/XrmDefinitelyTyped/Resources/dg.xrmquery.web.ts
@@ -1305,13 +1305,12 @@ namespace XQW {
1305
* @internal
1306
*/
1307
function getClientUrl() {
1308
- const url = getClientUrlFromGlobalContext()
1309
- || getClientUrlFromUtility()
1310
- || getClientUrlFromXrmPage();
1311
-
1312
- if (url) {
1313
- return url;
1314
- }
+ let url = getClientUrlFromGlobalContext();
+ if (url !== undefined) return url;
+ url = getClientUrlFromUtility();
+ url = getClientUrlFromXrmPage();
1315
1316
throw new Error("Context is not available.");
1317
}
0 commit comments