notion-enhancer/repo/integrated-titlebar/createWindow.cjs
dragonwocky e761b309bf tray: hotkey, run in background
window management features patched to reduce unexpected behaviour e.g. duplicate windows
2021-12-03 00:00:16 +11:00

19 lines
517 B
JavaScript

/*
* notion-enhancer: integrated titlebar
* (c) 2021 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
* (https://notion-enhancer.github.io/) under the MIT license
*/
'use strict';
module.exports = async function (api, db, __exports, __eval) {
__eval(`
const notionRectFromFocusedWindow = getRectFromFocusedWindow;
getRectFromFocusedWindow = (windowState) => {
const rect = notionRectFromFocusedWindow(windowState);
rect.frame = false;
return rect;
};
`);
};