use custom protocol instead of file:// for better security
This commit is contained in:
+2
-5
@@ -5,10 +5,9 @@
|
||||
*/
|
||||
|
||||
import { app, BrowserWindow } from "electron";
|
||||
import { join } from "path";
|
||||
import { VIEW_DIR } from "shared/paths";
|
||||
|
||||
import { makeLinksOpenExternally } from "./utils/makeLinksOpenExternally";
|
||||
import { loadView } from "./vesktopStatic";
|
||||
|
||||
export async function createAboutWindow() {
|
||||
const height = 750;
|
||||
@@ -27,9 +26,7 @@ export async function createAboutWindow() {
|
||||
APP_VERSION: app.getVersion()
|
||||
});
|
||||
|
||||
about.loadFile(join(VIEW_DIR, "about.html"), {
|
||||
search: data.toString()
|
||||
});
|
||||
loadView(about, "about.html", data);
|
||||
|
||||
return about;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user