Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChugunovRoman committed Feb 5, 2020
2 parents def5fb4 + 7d2881f commit a0a2c4a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 27 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ build
*.deb
*.bak
Figma-app*
snap/parts
snap/prime
snap/snap
snap/stage
40 changes: 19 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"chokidar": "^3.0.2",
"electron-devtools-installer": "^2.2.4",
"electron-settings": "github:ChugunovRoman/electron-settings#figma-linux",
"figma-linux-rust-binding": "^0.1.3",
"figma-linux-rust-binding": "^0.1.4",
"electron-build-env": "^0.2",
"mobx": "^5.6.0",
"mobx-react": "^5.4.2",
Expand Down
5 changes: 2 additions & 3 deletions src/main/window/WindowManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ class WindowManager {

this.mainWindow.webContents.send(Const.TABADDED, { id: tab.id, url, showBackBtn: true, title });

this.mainWindow.setBrowserView(tab);

return tab;
};

Expand Down Expand Up @@ -407,11 +409,8 @@ class WindowManager {
};

private onMainWindowWillNavigate = (event: any, newUrl: string) => {
// const currentUrl = event.sender.getURL();
const currentUrl = event.sender.getURL();

console.log("from: ", currentUrl, " to: ", newUrl);

if (newUrl === currentUrl) {
event.preventDefault();
return;
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/webBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface IntiApiOptions {
shortcutMan?: any;
}

const API_VERSION = 19;
const API_VERSION = 20;
let webPort: MessagePort;
let fontMap: any = null;
let resolveFontMapPromise: any = null;
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"chokidar": "^3.0.2",
"electron-devtools-installer": "^2.2.4",
"figma-linux-rust-binding": "^0.1.3",
"figma-linux-rust-binding": "^0.1.4",
"electron-build-env": "^0.2",
"electron-settings": "github:ChugunovRoman/electron-settings#figma-linux",
"mobx": "^5.0.3",
Expand Down

0 comments on commit a0a2c4a

Please sign in to comment.