Add stats.js for the preview panel when ?debug is on

This commit is contained in:
Ingvar Stepanyan
2021-07-22 17:40:30 +00:00
parent 4371da9270
commit 7b37bed6f2
3 changed files with 20 additions and 3 deletions

View File

@@ -8,10 +8,9 @@ import { Widget } from './widget.js';
/** @typedef {import('../libapi.mjs').Config} Config */
/** @typedef {import('./ops').Connection} Connection */
let isDebug = new URLSearchParams(location.search).has('debug');
export const isDebug = new URLSearchParams(location.search).has('debug');
if (isDebug) {
// @ts-ignore
await import('preact/debug');
}