Сборка фронт части
This commit is contained in:
parent
43f0bc1cdc
commit
dfbd387fae
176 changed files with 7839 additions and 1032 deletions
|
|
@ -21,7 +21,7 @@ function createWindow() {
|
|||
win.show();
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
win.loadURL('http://192.168.1.152:8001');
|
||||
win.loadURL('https://localhost:8001');
|
||||
win.webContents.openDevTools();
|
||||
} else {
|
||||
win.loadFile(path.join(__dirname, 'dist/index.html'));
|
||||
|
|
@ -35,7 +35,7 @@ app.whenReady().then(() => {
|
|||
// 2. Всех IP в локальной сети (192.168.x.x, 10.x.x.x и т.д.)
|
||||
// 3. Конкретного домена (если есть)
|
||||
if (
|
||||
request.hostname === '192.168.1.152' ||
|
||||
request.hostname === 'localhost' ||
|
||||
request.hostname === '127.0.0.1' ||
|
||||
request.hostname === '0.0.0.0' ||
|
||||
/^(192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)/.test(request.hostname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue