Edito tweaks (auto correct on)
This commit is contained in:
@@ -54,7 +54,10 @@ export function editorSyscalls(editor: Editor): SysCallMapping {
|
||||
await editor.reloadPage();
|
||||
},
|
||||
"editor.openUrl": async (ctx, url: string) => {
|
||||
window.open(url, "_blank")!.focus();
|
||||
let win = window.open(url, "_blank");
|
||||
if (win) {
|
||||
win.focus();
|
||||
}
|
||||
},
|
||||
"editor.flashNotification": (ctx, message: string) => {
|
||||
editor.flashNotification(message);
|
||||
|
||||
Reference in New Issue
Block a user