Update mod.js

This commit is contained in:
Ryo Hilmawan 2020-11-04 20:04:30 +07:00 committed by GitHub
parent b982cdef53
commit 9f6a6548d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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">&#129049;</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);