Calling context.canVisualizeForBrowser() tests if the browser has the required dependencies to visualize the web configurator. Required dependencies are:

  • Support for webGL

  • Support for web workers

The function returns true if the browser is compatible, false otherwise.

Example

let isCompatible = context.canVisualizeForBrowser();
if (isCompatible) {
  console.warn('Browser is not compatible.');
}
CODE

List of officially supported browsers

  • Chrome

  • Edge

  • Firefox

  • Opera

  • Safari

  • Android webview

  • Chrome for Android

  • Firefox for Android

  • Opera for Android

  • Safari on iOS

  • Samsung Internet

Returns

Type

Description

boolean

A boolean flag indicating if the browser is compatible.