mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-11 14:52:54 +01:00
feat: Editor Preview, patch "window.open" to navigate in same view (#18)
This commit is contained in:
@@ -96,6 +96,12 @@ export class CanvasView extends View {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Patch to open the next window in the same webview.
|
||||||
|
// Since we don't support multiple webviews.
|
||||||
|
window.open = function (url) {
|
||||||
|
window.location.href = url;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
webview.executeJavaScript(code);
|
webview.executeJavaScript(code);
|
||||||
|
|||||||
Reference in New Issue
Block a user