mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-07 05:59:02 +00:00
27 lines
696 B
JavaScript
27 lines
696 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;
|
|
};
|
|
`);
|
|
};
|
|
|
|
// hide on open
|
|
// maybe only do once to hide first window?
|
|
|
|
// exports.createWindow = (...args) => {
|
|
// warmWindowState.warmedWindow = true;
|
|
// createWindow(...args);
|
|
// };
|