Skip to content

Commit 846e7a2

Browse files
committed
changed the default config location
1 parent 88f80d0 commit 846e7a2

5 files changed

Lines changed: 6 additions & 21 deletions

File tree

signaturenDruck/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Signaturendruck</title>
77
<link rel="stylesheet" type="text/css" href="./../css/index.css">
88
<link rel="stylesheet" type="text/css" href="./../css/preview.css">
9-
<link rel="stylesheet" type="text/css" href="C:/Export/user.css">
9+
<link rel="stylesheet" type="text/css" href="C:/Export/SignaturenDruck/user.css">
1010
<link rel="stylesheet" type="text/css" href="./../css/modal.css">
1111
</head>
1212

signaturenDruck/html/print.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8">
66
<title>Signaturendruck</title>
77
<link rel="stylesheet" type="text/css" href="./../css/print.css">
8-
<link rel="stylesheet" type="text/css" href="C:/Export/print.css">
8+
<link rel="stylesheet" type="text/css" href="C:/Export/SignaturenDruck/print.css">
99
</head>
1010

1111
<body>

signaturenDruck/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const path = require('path')
99
const url = require('url')
1010
const fs = require('fs')
1111
const Store = require('electron-store')
12-
const config = new Store({cwd: 'C:\\Export\\'})
12+
const config = new Store({cwd: 'C:\\Export\\SignaturenDruck'})
1313
const cmd = require('node-cmd')
1414

1515
const configNew = {
@@ -47,7 +47,7 @@ let winManual
4747
function createWindow () {
4848
checkConfig()
4949
checkDir('./tmp')
50-
checkDir('C:\\Export')
50+
checkDir('C:\\Export\\SignaturenDruck')
5151
// Create the browser window.
5252
if (!config.store.devMode) {
5353
mainWindow = new BrowserWindow({width: 800, height: 580})
@@ -87,7 +87,7 @@ function deleteJSON () {
8787

8888
// checks if config file exists, else creates one
8989
function checkConfig () {
90-
if (fs.existsSync('C:\\Export\\config.json')) {
90+
if (fs.existsSync('C:\\Export\\SignaturenDruck\\config.json')) {
9191
if (!config.has('defaultPath')) {
9292
createConfig()
9393
}

signaturenDruck/previewMan.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

signaturenDruck/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ipc = require('electron').ipcRenderer
1919

2020
// requires the electron-store module and initializes it
2121
const Store = require('electron-store')
22-
const config = new Store({cwd: 'C:\\Export\\'})
22+
const config = new Store({cwd: 'C:\\Export\\SignaturenDruck'})
2323

2424
// requires the dataExtract-module
2525
const DataExtract = require('./dataExtract.js')

0 commit comments

Comments
 (0)