mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 19:19:03 +00:00
Update mod.js
This commit is contained in:
parent
b982cdef53
commit
9f6a6548d0
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
'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: '0a958f5a-17c5-48b5-8713-16190cae1959',
|
id: '0a958f5a-17c5-48b5-8713-16190cae1959',
|
||||||
@ -49,9 +51,15 @@ module.exports = {
|
|||||||
const $container = document.createElement('div');
|
const $container = document.createElement('div');
|
||||||
const $help = document.querySelector('.notion-help-button');
|
const $help = document.querySelector('.notion-help-button');
|
||||||
const $scroll = createElement(
|
const $scroll = createElement(
|
||||||
'<div class="notion-scroll-button" role="button">🠙</div>' // 🠙;
|
'<div class="notion-scroll-button" role="button"></div>'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
$scroll.innerHTML = await fs.readFile(
|
||||||
|
path.resolve(`${__dirname}/arrow.svg`) // 🠙;
|
||||||
|
)
|
||||||
|
})();
|
||||||
|
|
||||||
$container.className = 'bottom-right-buttons';
|
$container.className = 'bottom-right-buttons';
|
||||||
$help.after($container);
|
$help.after($container);
|
||||||
$container.append($scroll);
|
$container.append($scroll);
|
||||||
|
Loading…
Reference in New Issue
Block a user