We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ec5de commit 4c4b605Copy full SHA for 4c4b605
src/utils/menu.js
@@ -145,7 +145,8 @@ const menu = wrap(() => {
145
});
146
147
eventManager.on(':load', () => {
148
- fn.addMenuButton('Menu').addEventListener('click', () => menu.open());
+ const btn = fn.addMenuButton('Menu');
149
+ if (btn) btn.addEventListener('click', () => menu.open());
150
151
152
function dirty() {
src/utils/style.js
@@ -1,7 +1,6 @@
1
// Custom CSS classes are great.
2
const style = wrap(() => {
3
const el = document.createElement('style');
4
- el.type = 'text/css';
5
eventManager.on(':loaded', function appendStyle() {
6
document.head.append(el);
7
0 commit comments