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;
};
}