Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Mar 8, 2024
1 parent 4d91245 commit e16a489
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 132 deletions.
3 changes: 2 additions & 1 deletion starskydesktop/src/app/child-process/setup-child-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ function StartProcess(): Promise<number> {
.catch(reject);
});

starskyChild.stdout.on("data", () => {
starskyChild.once("spawn", () => {
logger.info("im doing something");
resolve(appPort);
});

Expand Down

This file was deleted.

This file was deleted.

14 changes: 8 additions & 6 deletions starskydesktop/src/app/main-window/create-main-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function CreateMainWindow(openSpecificUrl: string, offset = 0): Promise<Br
webPreferences: {
allowRunningInsecureContent: false,
nodeIntegration: false,
sandbox: true,
sandbox: false,
webviewTag: true,
spellcheck: true,
partition: "persist:main",
Expand All @@ -39,16 +39,18 @@ async function CreateMainWindow(openSpecificUrl: string, offset = 0): Promise<Br

mainWindowStateKeeper.track(newWindow);

const location = path.join(__dirname, "client/pages/start/start.html");
logger.info(`[CreateMainWindow] url: ${openSpecificUrl} l: ${location}`);
await newWindow.loadURL(openSpecificUrl, { extraHeaders: "test:true" });
// const location = path.join(__dirname, "client/pages/start/start.html");
// logger.info(`[CreateMainWindow] url: ${openSpecificUrl} l: ${location}`);

await newWindow.loadFile(location, {
query: { "remember-url": openSpecificUrl },
});
// await newWindow.loadFile(location, {
// query: { "remember-url": openSpecificUrl },
// });

spellCheck(newWindow);

newWindow.once("ready-to-show", () => {
logger.info("ready to show");
newWindow.show();
});

Expand Down

0 comments on commit e16a489

Please sign in to comment.