mirror of https://github.com/laurent22/joplin.git
Desktop: use nodeIntegration
parent
22cacd2c5b
commit
7d6b7e588c
|
@ -54,6 +54,9 @@ class ElectronAppWrapper {
|
||||||
y: windowState.y,
|
y: windowState.y,
|
||||||
width: windowState.width,
|
width: windowState.width,
|
||||||
height: windowState.height,
|
height: windowState.height,
|
||||||
|
webPreferences: {
|
||||||
|
nodeIntegration: true,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Linux icon workaround for bug https://github.com/electron-userland/electron-builder/issues/2098
|
// Linux icon workaround for bug https://github.com/electron-userland/electron-builder/issues/2098
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<!--
|
||||||
|
No CPS because we need to allow everything due to some dependencies (eg. depd, which comes from maybe Node or Electron
|
||||||
|
uses 'eval'.
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval'">
|
||||||
|
-->
|
||||||
<title>Joplin</title>
|
<title>Joplin</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link rel="stylesheet" href="css/fork-awesome.min.css">
|
<link rel="stylesheet" href="css/fork-awesome.min.css">
|
||||||
|
|
|
@ -205,6 +205,7 @@ class WebDavApi {
|
||||||
requestToCurl_(url, options) {
|
requestToCurl_(url, options) {
|
||||||
let output = [];
|
let output = [];
|
||||||
output.push('curl');
|
output.push('curl');
|
||||||
|
output.push('-v');
|
||||||
if (options.method) output.push('-X ' + options.method);
|
if (options.method) output.push('-X ' + options.method);
|
||||||
if (options.headers) {
|
if (options.headers) {
|
||||||
for (let n in options.headers) {
|
for (let n in options.headers) {
|
||||||
|
|
Loading…
Reference in New Issue