Last active
July 18, 2020 21:05
-
-
Save emregulcan/8e73e31b5ca7b647f18e18334ebf1727 to your computer and use it in GitHub Desktop.
Detect Dynamics 365 CE dashboard page (Alternate 01)
This file contains hidden or 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
function isDashboardPage() { | |
let url = window.location; | |
if (url.search.indexOf("pagetype=dashboard") === -1 && window.parent != undefined && window.parent != null) { | |
url = window.parent.location; | |
} | |
return (url.search.indexOf("pagetype=dashboard") > -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment