mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 19:19:03 +00:00
refactor indentation lines to use the map function
This commit is contained in:
parent
8b26ec1117
commit
8d51a449b1
@ -8,9 +8,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { createElement } = require('../../pkg/helpers.js'),
|
const { createElement } = require('../../pkg/helpers.js');
|
||||||
path = require('path'),
|
|
||||||
fs = require('fs-extra');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
id: '35815b3b-3916-4dc6-8769-c9c2448f8b57',
|
id: '35815b3b-3916-4dc6-8769-c9c2448f8b57',
|
||||||
@ -56,12 +54,10 @@ module.exports = {
|
|||||||
document.addEventListener('readystatechange', (event) => {
|
document.addEventListener('readystatechange', (event) => {
|
||||||
if (document.readyState !== 'complete') return false;
|
if (document.readyState !== 'complete') return false;
|
||||||
|
|
||||||
let selectors = [];
|
const selectors =
|
||||||
['bulleted_list', 'numbered_list', 'to_do', 'toggle']
|
['bulleted_list', 'numbered_list', 'to_do', 'toggle']
|
||||||
.filter(l => store()[l])
|
.filter(l => store()[l])
|
||||||
.forEach(
|
.map(l => `.notion-page-content .notion-${l}-block > div > div:last-child`);
|
||||||
l => selectors.push(`.notion-page-content .notion-${l}-block > div > div:last-child`)
|
|
||||||
)
|
|
||||||
|
|
||||||
let style = 'solid';
|
let style = 'solid';
|
||||||
let opacity = 1;
|
let opacity = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user