- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
using fling sdk and with the angular component file have the code
this.gs.getWebPlatform().setGlobalRefreshHandler(this.refresh.bind(this), document);
When registred with VCSA 6.5 html client it says TypeError: this.gs.getWebPlatform(...).setGlobalRefreshHandler is not a function pointing to mainbundle.js
Browser - chrome and firefox.
Please help me on how to fix this. As per the documentation callback function needs to be passed as parameter so refresh is the callback function here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in global.service.ts, in the constructor for Globals, use this to patch webPlatform in case setGlobalRefreshHandler is not defined (replace the current code)
if (!this.webPlatform.setGlobalRefreshHandler) {
this.webPlatform.setGlobalRefreshHandler = function (handler) {
window.parent["WEB_PLATFORM"]["refresh" + window.name] = handler;
};
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.It worked.