From 541a83f79257fb821fac8eae9e6bca530b18f51f Mon Sep 17 00:00:00 2001 From: fwldom Date: Tue, 6 Aug 2024 18:58:59 +0330 Subject: [PATCH] Test Action(1) --- browser.css | 7 ------- main.js | 9 ++++++++- package.json | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/browser.css b/browser.css index 37c131f..4fd9ca0 100644 --- a/browser.css +++ b/browser.css @@ -1,12 +1,8 @@ body { background-color: #1A1A22 !important; -<<<<<<< Updated upstream -} -======= overflow: hidden; } ->>>>>>> Stashed changes .tab.active { background-color: #2a2a4d !important; } @@ -151,8 +147,6 @@ body { transform: scale(1); } } -<<<<<<< Updated upstream -======= #menu { width: 95vw; @@ -232,4 +226,3 @@ body { width: 50vw; padding-top: 50px; } ->>>>>>> Stashed changes diff --git a/main.js b/main.js index 5e04360..f10625d 100644 --- a/main.js +++ b/main.js @@ -7,6 +7,7 @@ const { exec } = require("child_process"); const { eventNames } = require('process'); const ipc = require('electron').ipcMain; const { initialize } = require('@aptabase/electron/main'); +const { setInterval } = require('timers/promises'); initialize("A-EU-5072151346"); var currentURL = ""; @@ -33,7 +34,13 @@ function createWindow() { } catch { }; }); -} +}; +setInterval(() => { + try { + ViewBrowser.setBounds({ x: 0, y: mainWindow.getBounds().height / 6, width: mainWindow.getBounds().width, height: mainWindow.getBounds().height / 1.3 }); + } + catch { }; +},5000) function CreateViewBrowser(url) { ViewBrowser = new BrowserView(); mainWindow.setBrowserView(ViewBrowser); diff --git a/package.json b/package.json index 5adba57..718cbd0 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "output": "dist" }, "win": { + "publish":"always", "icon": "ico.png", "target": "nsis", "requestedExecutionLevel": "requireAdministrator", @@ -70,7 +71,7 @@ "icon": "ico.png", "target": "deb", "category": "VPN", - "publish": false + "publish": "always" }, "publish": { "provider": "github",