UNPKG

apiconnect-explorer

Version:

- [Getting Started](#getting-started) - [Configuration](#configuration) * [Required](#required) * [Optional](#optional) - [Usage in React](#usage-in-react) - [Usage outside of React](#usage-outside-of-react) - [Detailed description of options](#detail

1 lines 743 B
import a from"react";import{createRoot as b}from"react-dom/client";import c from"./ApiExplorerApp.js";import d from"./components/ThemeSync.js";import e from"./registerServiceWorker.js";try{var f="apiConnectExplorer.theme",g=localStorage.getItem(f);g&&(window.apiConnectExplorer=window.apiConnectExplorer||{},window.apiConnectExplorer.options=window.apiConnectExplorer.options||{},window.apiConnectExplorer.options.theme=g)}catch(a){}function h(a){return"string"==typeof a?document.querySelector(a):a}var i=window.apiConnectExplorer&&window.apiConnectExplorer.attachPoint?h(window.apiConnectExplorer.attachPoint):h("apiconnect-explorer");var j=b(i);j.render(a.createElement(a.Fragment,null,a.createElement(d,null),a.createElement(c,null))),e();