diff --git a/repo/calendar-scroll/mod.js b/repo/calendar-scroll/mod.js index 44cf64f..0e296d9 100644 --- a/repo/calendar-scroll/mod.js +++ b/repo/calendar-scroll/mod.js @@ -13,7 +13,7 @@ module.exports = { tags: ['extension'], name: 'calendar scroll', desc: - 'add a button to scroll down to the current week of a calendar for you.', + 'add a button to scroll down to the current week in fullpage/infinite-scroll calendars', version: '0.1.0', author: 'dragonwocky', hacks: { diff --git a/repo/core/client.js b/repo/core/client.js index 8aad84b..0aca69c 100644 --- a/repo/core/client.js +++ b/repo/core/client.js @@ -10,8 +10,7 @@ module.exports = (store, __exports) => { const electron = require('electron'), helpers = require('../../pkg/helpers.js'), - __notion = helpers.getNotion(), - notionIpc = require(`${__notion.replace( + notionIpc = require(`${helpers.__notion.replace( /\\/g, '/' )}/app/helpers/notionIpc.js`); diff --git a/repo/core/create.js b/repo/core/create.js index 14334a6..47165d0 100644 --- a/repo/core/create.js +++ b/repo/core/create.js @@ -15,12 +15,11 @@ module.exports = (store, __exports) => { ), // createWindow = __exports.createWindow, path = require('path'), - helpers = require('../../pkg/helpers.js'), - __notion = helpers.getNotion(); + helpers = require('../../pkg/helpers.js'); __exports.createWindow = function (relativeUrl, focused_window) { if (!relativeUrl) relativeUrl = ''; - const window_state = require(`${__notion.replace( + const window_state = require(`${helpers.__notion.replace( /\\/g, '/' )}/app/node_modules/electron-window-state/index.js`)({ @@ -47,7 +46,7 @@ module.exports = (store, __exports) => { titleBarStyle: 'hiddenInset', frame: !store().frameless, webPreferences: { - preload: path.resolve(`${__notion}/app/renderer/index.js`), + preload: path.resolve(`${helpers.__notion}/app/renderer/index.js`), webviewTag: true, session: electron.session.fromPartition('persist:notion'), }, diff --git a/repo/core/tray.js b/repo/core/tray.js index 0c004e9..871cbdb 100644 --- a/repo/core/tray.js +++ b/repo/core/tray.js @@ -14,8 +14,7 @@ module.exports = (store, __exports) => { path = require('path'), is_mac = process.platform === 'darwin', is_win = process.platform === 'win32', - helpers = require('../../pkg/helpers.js'), - __notion = helpers.getNotion(); + helpers = require('../../pkg/helpers.js'); electron.app.on('ready', () => { tray = new electron.Tray( @@ -77,12 +76,12 @@ module.exports = (store, __exports) => { function openExtensionMenu() { if (enhancer_menu) return enhancer_menu.show(); - const window_state = require(`${__notion.replace( + const window_state = require(`${helpers.__notion.replace( /\\/g, '/' )}/app/node_modules/electron-window-state/index.js`)({ file: 'menu-windowstate.json', - path: helpers.data_folder, + path: helpers.__data, defaultWidth: 275, defaultHeight: 600, }); @@ -165,7 +164,9 @@ module.exports = (store, __exports) => { click: () => { require('./create.js')( store, - require(path.resolve(`${__notion}/app/main/createWindow.js`)) + require(path.resolve( + `${helpers.__notion}/app/main/createWindow.js` + )) )( '', electron.BrowserWindow.getAllWindows().find( diff --git a/repo/pastel-dark/mod.js b/repo/pastel-dark/mod.js index 37de889..c5a5f14 100644 --- a/repo/pastel-dark/mod.js +++ b/repo/pastel-dark/mod.js @@ -16,8 +16,7 @@ module.exports = { author: { name: 'zenith_illinois', link: 'https://www.reddit.com/user/zenith_illinois/', - avatar: - 'https://cdn.discordapp.com/avatars/565182533940150283/54f36546ab586298a5df5c238cbaaa4b.png?size=128', + avatar: 'https://www.redditstatic.com/avatars/avatar_default_18_46A508.png', }, fonts: ['https://rsms.me/inter/inter.css'], };