ChemPal Documentation - v1.6.0
    Preparing search index...

    Function removeDebugApi

    • Removes the helper API from window, so leaving advanced mode takes the console surface with it. Safe to call when nothing is attached.

      Returns void

      Nothing; mutates the global window

      removeDebugApi();
      // In the console: window.chempal // => undefined
      export function removeDebugApi(): void {
      if (!window.chempal) return;
      delete window.chempal;
      printDebug('ChemPal debug helpers removed');
      }