Instead of using the top.window method is there any way to use?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2019 12:30 PM
Hello,
i have using the top.window method is there any alternative way to use url string its working now but portal not working please suggest me
Labels:
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2019 03:01 PM
You can move the code, which initialize urls variable outside of setTimeout (directly after var user = '';) and to use the following:
var urls = (this ? this.top : top).window.location.search;
It should work in both Desktop and Service Portal.