Skip to content

Commit 83fa091

Browse files
committed
robo8x [chore] 10/4/2020, 10:11:27 AM
1 parent c9edc50 commit 83fa091

File tree

11 files changed

+27
-13
lines changed

11 files changed

+27
-13
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
@license p3x-onenote v2020.10.128
2+
@license p3x-onenote v2020.10.155
33

44
📚 P3X OneNote Linux
55

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
# 📚 P3X OneNote Linux v2020.10.128
14+
# 📚 P3X OneNote Linux v2020.10.155
1515

1616

1717

@@ -232,7 +232,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
232232

233233
---
234234

235-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.128
235+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.155
236236

237237
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
238238

artifacts/arm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
2525

2626
---
2727

28-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.128
28+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.155
2929

3030
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
3131

artifacts/new-language.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
2525

2626
---
2727

28-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.128
28+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.155
2929

3030
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
3131

artifacts/npm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
3838

3939
---
4040

41-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.128
41+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.155
4242

4343
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
4444

changelog.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
## Change log
99

10-
### v2020.10.125
10+
### v2020.10.155
11+
* BUILD: Fix newer build from `electron-builder`.
12+
13+
### v2020.10.132
1114
* CHORE: Updated deps.
1215

1316
### v2020.10.123
@@ -189,7 +192,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
189192

190193
---
191194

192-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.128
195+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.155
193196

194197
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
195198

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p3x-onenote",
3-
"version": "2020.10.128",
3+
"version": "2020.10.155",
44
"description": "📚 P3X OneNote Linux",
55
"main": "src/electron/app.js",
66
"corifeus": {
@@ -59,7 +59,7 @@
5959
"electron": "^10.1.3"
6060
},
6161
"devDependencies": {
62-
"corifeus-builder": "^2020.10.113",
62+
"corifeus-builder": "^2020.10.116",
6363
"electron-builder": "^22.8.1"
6464
},
6565
"engines": {

src/electron/main/app-events.js

+10
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ app.on('activate', function () {
1515
}
1616
});
1717

18+
19+
//FIXME: webview new-window changed
20+
app.on('web-contents-created', function (webContentsCreatedEvent, contents) {
21+
if (contents.getType() === 'webview') {
22+
contents.on('new-window', function (newWindowEvent, url) {
23+
newWindowEvent.preventDefault();
24+
});
25+
}
26+
});
27+

src/electron/main/create/window/onenote.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function createWindow() {
1111
autoHideMenuBar: true,
1212
webPreferences: {
1313
enableRemoteModule: true,
14+
worldSafeExecuteJavaScript: true,
1415
nodeIntegration: true,
1516
webviewTag: true,
1617
}

src/electron/window/onenote/event/handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const handler = (options) => {
103103

104104
});
105105

106-
webview.addEventListener('new-window', async function (event) {
106+
webview.addEventListener('new-window', function (event) {
107107

108108
event.preventDefault()
109109
//p3x.onenote.toast.action(p3x.onenote.lang.label.unknownLink)

src/electron/window/onenote/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="utf-8">
77
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
8-
8+
<meta http-equiv="Content-Security-Policy" content="unsafe-inline">
99
<link rel="stylesheet" href="../../../../node_modules/typeface-roboto/index.css"/>
1010
<link rel="stylesheet" href="../../../../node_modules/angular/angular-csp.css">
1111
<link rel="stylesheet" href="../../../../node_modules/angular-material/angular-material.css">
@@ -50,7 +50,7 @@
5050

5151

5252
</div>
53-
<webview id="p3x-onenote-webview" webpreferences="nativeWindowOpen=true">
53+
<webview id="p3x-onenote-webview" webpreferences="nativeWindowOpen=true" allowpopups>
5454
</webview>
5555

5656

0 commit comments

Comments
 (0)