From 6b0c0838db2932123900490e5e687b7a5f8fb2fb Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Sun, 16 Feb 2020 17:47:02 +0530 Subject: [PATCH] URL changes --- src/index.js | 14 ++++++++------ src/windows/checkUpdates/checkUpdates.js | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 77197609..b79c3d2a 100644 --- a/src/index.js +++ b/src/index.js @@ -49,7 +49,7 @@ getDarkTheme(createThemesList); * @param {createThemesListCallback} createThemesList */ function getDarkTheme(createThemesList) { - fetch('https://raw.githubusercontent.com/ShadyThGod/shadythgod.github.io/master/css/altus-dark-theme.css', { + fetch('https://raw.githubusercontent.com/vednoc/dark-whatsapp/master/wa.user.css', { cache: 'no-cache' }) .then(res => { @@ -59,7 +59,9 @@ function getDarkTheme(createThemesList) { throw new Error(res.statusText); } }) - .then(css => createThemesList(css)) + .then(css => { + createThemesList(css.replace(/\/\*(.*\n)+\n@.*\{/gim, '')) + }) .catch(e => { dialog.showErrorBox('Error: Base Dark Theme Not Loaded (No Internet Connection)', e); createThemesList(''); @@ -397,22 +399,22 @@ const mainMenuTemplate = [{ submenu: [{ label: 'Report Bugs/Issues', click: () => { - shell.openExternal('https://github.com/shadythgod/altus/issues'); + shell.openExternal('https://github.com/amanharwara/altus/issues'); } }, { label: 'Website', click: () => { - shell.openExternal('https://shadythgod.github.io'); + shell.openExternal('https://amanharwara.xyz'); } }, { label: 'GitHub', click: () => { - shell.openExternal('https://www.github.com/shadythgod'); + shell.openExternal('https://www.github.com/amanharwara'); } }, { label: 'Repository', click: () => { - shell.openExternal('https://www.github.com/shadythgod/altus'); + shell.openExternal('https://www.github.com/amanharwara/altus'); } }, { label: 'Discord Chat', diff --git a/src/windows/checkUpdates/checkUpdates.js b/src/windows/checkUpdates/checkUpdates.js index 0fc9041f..0bdb452c 100644 --- a/src/windows/checkUpdates/checkUpdates.js +++ b/src/windows/checkUpdates/checkUpdates.js @@ -53,7 +53,7 @@ if (Array.from(settings.get('settings')).find(s => s.id === 'customTitlebar').va } // Set current version -document.querySelector('.version').innerHTML = `Current Version: v${app.getVersion()}`; +document.querySelector('.version').innerHTML = `Current Version: v${app.getVersion()}`; setCurrentReleaseNotes();