mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
import renderApp from './render'
|
|
import { isClashX, setupJsBridge } from '@lib/jsBridge'
|
|
// import * as OfflinePluginRuntime from 'offline-plugin/runtime'
|
|
|
|
/**
|
|
* Global entry
|
|
* Will check if need setup jsbridge
|
|
*/
|
|
if (isClashX()) {
|
|
setupJsBridge(() => renderApp())
|
|
} else {
|
|
renderApp()
|
|
}
|