Skip to content

Commit fb376d5

Browse files
committed
fixup! added forceboot on developer settings
1 parent 785bc89 commit fb376d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/contents/index/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function App(): JSX.Element {
7474
// 狀態為離綫時,除非强制啓動為 true
7575
// 此處不需要顯示按鈕
7676
// 離綫下載按鈕交給 feature UI 處理
77-
if (info.status === 'offline' && !developerSettings.extra.forceBoot) {
77+
if (info.status === 'offline') {
7878
return <></>
7979
}
8080

src/contents/index/mounter.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ function createApp(roomId: string, plasmo: PlasmoSpec, info: StreamInfo): App {
129129
return
130130
}
131131

132+
// 強制啓動
133+
if (forceBoot) {
134+
info.status = 'online'
135+
}
136+
132137
if (!(await shouldInit(settings, info))) {
133138
console.info('不符合初始化條件,已略過')
134139
return
@@ -143,7 +148,7 @@ function createApp(roomId: string, plasmo: PlasmoSpec, info: StreamInfo): App {
143148
}
144149

145150
// hook adapter (only when online or forceBoot)
146-
if (info.status === 'online' || forceBoot) {
151+
if (info.status === 'online') {
147152
console.info('開始注入適配器....')
148153
const adapterType = settings["settings.capture"].captureMechanism
149154
const hooking = injectAdapter({ command: 'hook', type: adapterType, settings: settings })

0 commit comments

Comments
 (0)