@aidc/utils
Advanced tools
Comparing version 0.2.37 to 0.2.38
import _debug from 'debug'; | ||
import { isChrome, isDev } from "../env"; | ||
import { isChrome, isChromeBackground, isDev } from "../env"; | ||
import { getSearchParams } from "../general"; | ||
@@ -12,3 +12,3 @@ | ||
} | ||
if (isDev || getSearchParams('debug')) { | ||
if (isDev || isChromeBackground || getSearchParams('debug')) { | ||
_debug.enable(namespace); | ||
@@ -15,0 +15,0 @@ } else { |
@@ -1,6 +0,6 @@ | ||
import { render } from 'react-dom'; | ||
import { createRoot } from 'react-dom/client'; | ||
export function renderAppend(element, container) { | ||
var div = document.createElement('div'); | ||
container.appendChild(div); | ||
render(element, div); | ||
createRoot(div).render(element); | ||
} | ||
@@ -7,0 +7,0 @@ export function injectScript(url) { |
{ | ||
"name": "@aidc/utils", | ||
"version": "0.2.37", | ||
"version": "0.2.38", | ||
"repository": "git@gitlab.alibaba-inc.com:aidc-innovation/aidc-fe.git", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
20516