Skip to content

Commit

Permalink
Fix: 型エラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Mar 25, 2024
1 parent 95d4b5c commit e9f2d4c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/backend/mobile/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ export const api: Sandbox = {
});
},
showProjectLoadDialog(/* obj: { title: string } */) {
throw new Error(
"スマホ版では現在ファイルの読み込みをサポートしていません"
);
throw new Error("スマホ版では現在ファイルの読み込みをサポートしていません");
},
showMessageDialog(obj: {
type: "none" | "info" | "error" | "question" | "warning";
Expand All @@ -152,9 +150,7 @@ export const api: Sandbox = {
);
},
showImportFileDialog(/* obj: { title: string } */) {
throw new Error(
"スマホ版では現在ファイルの読み込みをサポートしていません"
);
throw new Error("スマホ版では現在ファイルの読み込みをサポートしていません");
},
writeFile(obj: { filePath: string; buffer: ArrayBuffer }) {
throw new Error(
Expand Down Expand Up @@ -308,7 +304,8 @@ export const api: Sandbox = {
validateEngineDir(/* engineDir: string */) {
throw new Error(`Not supported: validateEngineDir`);
},
reloadApp(/* obj: { isMultiEngineOffMode: boolean } */) {
location.reload()
async reloadApp(obj: { isMultiEngineOffMode: boolean }) {
location.search = `?isMultiEngineOffMode=${obj.isMultiEngineOffMode}`;
location.reload();
},
};

0 comments on commit e9f2d4c

Please sign in to comment.