Article Details
Id:19356
Product:finPOWER Connect
Type:FIX
Version:4.00.00
Opened:14/07/2022
Closed:14/07/2022
Released:21/12/2022
Job: J029157
High Importance

Scripts; HTML Reports; PolyFill added so that Scripts using window.navigate still work with WebView2

Since updating to the WebView2 from Microsoft's old WebBrowser control, certain older, compatibility functionality no longer exists.

One JavaScript function that no longer works is window.navigate which is used in the sample "Management Dashboard Sample" Script supplied with finPOWER Connect.

The viewer for HTML Reports now injects the following "PolyFill" code into the HTML Report to maintain compatibility:

// finPOWER Connect PolyFill for HTML Reports using window.navigate
if (!window.navigate) {
  window.navigate = function (url) {
    document.location = url;
  }
}