Skip to content

Commit

Permalink
chore: remove useless log
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Aug 10, 2023
1 parent 8152e23 commit dd5ae88
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions core/public/target.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions core/src/eval-logs/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import type { definePlugin } from '../plugins'

import { elBridgeC } from './bridge.ts'

console.log('devtools')

const storageInited = localStorage.getItem('storageInited')
if (!storageInited) {
localStorage.setItem('storageInited', JSON.stringify(true))
Expand Down Expand Up @@ -35,13 +33,11 @@ export type DevtoolsWindow = Window & typeof globalThis & {
>
}

console.log(__DEBUG__)
sentinel.on('iframe', async (devtools: HTMLIFrameElement) => {
const devtoolsWindow: DevtoolsWindow = devtools.contentWindow! as DevtoolsWindow
const devtoolsDocument = devtools.contentDocument!

// devtoolsWindow.eval(`window.simport = path => import(\`https://cdn.jsdelivr.net/npm/chii/public/front_end/\${path}\`)`)
// await new Promise<void>(re => setTimeout(re, 5000))
__DEBUG__ && console.debug('devtools', devtoolsWindow, devtoolsDocument)
__DEBUG__ && console.debug('readyState', devtoolsDocument.readyState)

Expand Down Expand Up @@ -154,7 +150,6 @@ sentinel.on('iframe', async (devtools: HTMLIFrameElement) => {
}
devtoolsWindow.addEventListener('load', () => re())
})
console.log(devtoolsWindow.simport)
const realCommon = await devtoolsWindow.simport('core/common/common.js')
realCommon.Runnable.registerEarlyInitializationRunnable(runnable)

Expand Down
2 changes: 0 additions & 2 deletions core/src/eval-logs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import sentinel from 'sentinel-js'
import { elBridgeC } from './bridge.ts'
import { Files } from './files.ts'

console.log('init')

window.__DEBUG__ = JSON.parse(localStorage.getItem('enableDebug') ?? 'false')

sentinel.on('.__chobitsu-hide__', _el => {
Expand Down

0 comments on commit dd5ae88

Please sign in to comment.