www/configurator/src/index.js
function handleHashChange_() {
  cssTranspiler.getCssWithVars(getUrlCssVars()).then(updatedStyles => {
    iframeManager.setStyle(updatedStyles);
  }).catch(error => {
    // Don't set the styles, log the error
    console.error(error);
  });
}
function handleHashChange_() {
  cssTranspiler.getCssWithVars(getUrlCssVars()).then(updatedStyles => {
    iframeManager.setStyle(updatedStyles);
  }).catch(error => {
    // Don't set the styles, log the error
    console.error(error);
  });
}
function handleHashChange_ ( ) { cssTranspiler . getCssWithVars ( getUrlCssVars ( ) ) . then ( updatedStyles => { iframeManager . setStyle ( updatedStyles ) ; } ) . catch ( error => { // Don't set the styles, log the error console . error ( error ) ; } ) ; }
Function to handle URL hash changes. This is not used until the initialization of the configurator is completed.
Also, this will simply get the latest URL params, pass them to the transpiler, and set the styles in the iframe manager.
Function to handle URL hash changes . This is not used until the initialization of the configurator is completed . Also this will simply get the latest URL params pass them to the transpiler and set the styles in the iframe manager .