Last active
December 21, 2020 20:49
-
-
Save zaynelt/27c11d09a1387c1603e3ee9e5984831c to your computer and use it in GitHub Desktop.
Code snippets to mock and performance test virtual desktop session connections to Salesforce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pageEpt = await remote.execute(() => { | |
let ept = null; | |
let error = null; | |
try { | |
const t = $A.metricsService.getCurrentPageTransaction(); | |
ept = t.config.context.ept; | |
} catch (e) { | |
error = e.message || e; | |
} | |
if (!Number.isInteger(ept)) { | |
error = "EPT not an number"; | |
} | |
return { ept, URL: `${location.pathname}${location.search}`, error }; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment