diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-08-01 17:20:40 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 17:20:40 +0900 |
| commit | e092008dc5768cb57b9eeb2ff70e5b831e0dfa24 (patch) | |
| tree | 9d5c4e33ee26219acd57b66e8f6fc0394bbd022a /packages/frontend/src/plugin.ts | |
| parent | enhance(frontend): いくつかの翻訳を調整 (diff) | |
| download | misskey-e092008dc5768cb57b9eeb2ff70e5b831e0dfa24.tar.gz misskey-e092008dc5768cb57b9eeb2ff70e5b831e0dfa24.tar.bz2 misskey-e092008dc5768cb57b9eeb2ff70e5b831e0dfa24.zip | |
feat(frontend): セーフモード (#16245)
* feat(frontend): セーフモード
* Update Changelog
* Update Changelog
* fix
* fix
* Update Changelog
* Update Changelog
* PWAのショートカット経由でもセーフモードで起動できるように
* Update ClientServerService.ts
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/plugin.ts')
| -rw-r--r-- | packages/frontend/src/plugin.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/plugin.ts b/packages/frontend/src/plugin.ts index d6007a27ed..5610ae7095 100644 --- a/packages/frontend/src/plugin.ts +++ b/packages/frontend/src/plugin.ts @@ -6,6 +6,7 @@ import { ref, defineAsyncComponent } from 'vue'; import { Interpreter, Parser, utils, values } from '@syuilo/aiscript'; import { compareVersions } from 'compare-versions'; +import { isSafeMode } from '@@/js/config.js'; import { genId } from '@/utility/id.js'; import * as Misskey from 'misskey-js'; import { aiScriptReadline, createAiScriptEnv } from '@/aiscript/api.js'; @@ -232,6 +233,7 @@ export function launchPlugins() { } async function launchPlugin(id: Plugin['installId']): Promise<void> { + if (isSafeMode) return; const plugin = prefer.s.plugins.find(x => x.installId === id); if (!plugin) return; |