Skip to content

Commit

Permalink
Change: on Browser versionを消す
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Mar 24, 2024
1 parent 53ca60c commit 95d4b5c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/backend/mobile/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const api: Sandbox = {
},
showImportFileDialog(/* obj: { title: string } */) {
throw new Error(

Check failure on line 155 in src/backend/mobile/sandbox.ts

View workflow job for this annotation

GitHub Actions / build-test

Replace `⏎······"スマホ版では現在ファイルの読み込みをサポートしていません"⏎····` with `"スマホ版では現在ファイルの読み込みをサポートしていません"`
"ブラウザ版では現在ファイルの読み込みをサポートしていません"
"スマホ版では現在ファイルの読み込みをサポートしていません"
);
},
writeFile(obj: { filePath: string; buffer: ArrayBuffer }) {
Expand Down Expand Up @@ -184,13 +184,13 @@ export const api: Sandbox = {
});
},
closeWindow() {
throw new Error(`Not supported on Browser version: closeWindow`);
throw new Error(`Not supported: closeWindow`);
},
minimizeWindow() {
throw new Error(`Not supported on Browser version: minimizeWindow`);
throw new Error(`Not supported: minimizeWindow`);
},
maximizeWindow() {
throw new Error(`Not supported on Browser version: maximizeWindow`);
throw new Error(`Not supported: maximizeWindow`);
},
/* eslint-disable no-console */ // ログの吐き出し先は console ぐらいしかないので、ここでは特例で許可している
logError(...params: unknown[]) {
Expand All @@ -206,17 +206,17 @@ export const api: Sandbox = {
return;
},
openLogDirectory() {
throw new Error(`Not supported on Browser version: openLogDirectory`);
throw new Error(`Not supported: openLogDirectory`);
},
/* eslint-enable no-console */
engineInfos() {
return Promise.resolve([defaultEngine]);
},
restartEngine(/* engineId: EngineId */) {
throw new Error(`Not supported on Browser version: restartEngine`);
throw new Error(`Not supported: restartEngine`);
},
openEngineDirectory(/* engineId: EngineId */) {
throw new Error(`Not supported on Browser version: openEngineDirectory`);
throw new Error(`Not supported: openEngineDirectory`);
},
async hotkeySettings(newData?: HotkeySettingType) {
type HotkeySettingType = ReturnType<
Expand Down Expand Up @@ -300,15 +300,15 @@ export const api: Sandbox = {
return;
},
installVvppEngine(/* path: string */) {
throw new Error(`Not supported on Browser version: installVvppEngine`);
throw new Error(`Not supported: installVvppEngine`);
},
uninstallVvppEngine(/* engineId: EngineId */) {
throw new Error(`Not supported on Browser version: uninstallVvppEngine`);
throw new Error(`Not supported: uninstallVvppEngine`);
},
validateEngineDir(/* engineDir: string */) {
throw new Error(`Not supported on Browser version: validateEngineDir`);
throw new Error(`Not supported: validateEngineDir`);
},
reloadApp(/* obj: { isMultiEngineOffMode: boolean } */) {

Check failure on line 311 in src/backend/mobile/sandbox.ts

View workflow job for this annotation

GitHub Actions / build-test

Type '() => void' is not assignable to type '(obj: { isMultiEngineOffMode?: boolean | undefined; }) => Promise<void>'.

Check failure on line 311 in src/backend/mobile/sandbox.ts

View workflow job for this annotation

GitHub Actions / lint

Type '() => void' is not assignable to type '(obj: { isMultiEngineOffMode?: boolean | undefined; }) => Promise<void>'.
throw new Error(`Not supported on Browser version: reloadApp`);
location.reload()

Check failure on line 312 in src/backend/mobile/sandbox.ts

View workflow job for this annotation

GitHub Actions / build-test

Insert `;`
},
};

0 comments on commit 95d4b5c

Please sign in to comment.