Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
Former-commit-id: 363e72d73534f0f169dfee9015908e1b5db3e027 [formerly 452f2cd]
Former-commit-id: 7d7c269290506cc67aa6ca678a9c2cec8fc19cc9
  • Loading branch information
sentialx committed Mar 23, 2019
1 parent 3f9e953 commit 9ee8db8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wexond",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "Extensible, fast and innovative web browser with material UI.",
"keywords": [
"web-browser",
Expand Down
11 changes: 9 additions & 2 deletions src/main/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,15 @@ ipcMain.on(
const view = appWindow.viewManager.views[tabId];

if (view) {
view.webContents.insertCSS(details.code);
e.sender.send('api-tabs-insertCSS');
view.webContents.executeJavaScript(
`
document.styleSheets[0].insertRule(\`${details.code}\`, 0);
`,
true,
() => {
e.sender.send('api-tabs-insertCSS');
},
);
}
},
);
Expand Down

0 comments on commit 9ee8db8

Please sign in to comment.