notion-enhancer
Version:
an enhancer/customiser for the all-in-one productivity workspace notion.so
13 lines (10 loc) • 336 B
JavaScript
/**
* notion-enhancer: focus mode
* (c) 2020 Arecsu
* (c) 2021 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
* (https://notion-enhancer.github.io/) under the MIT license
*/
;
export default async function (api, db) {
if (await db.get(['padded'])) document.body.dataset.focusMode = 'padded';
}