[Glitch] Dont use CommonJS (require
, module.exports
) anywhere
Port 955179fc55
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import 'packs/public-path';
|
||||
import loadPolyfills from 'flavours/glitch/load_polyfills';
|
||||
import loadKeyboardExtensions from 'flavours/glitch/load_keyboard_extensions';
|
||||
import { delegate } from '@rails/ujs';
|
||||
import 'cocoon-js-vanilla';
|
||||
|
||||
function main() {
|
||||
const { delegate } = require('@rails/ujs');
|
||||
|
||||
const toggleSidebar = () => {
|
||||
const sidebar = document.querySelector('.sidebar ul');
|
||||
const toggleButton = document.querySelector('.sidebar__toggle__icon');
|
||||
|
Reference in New Issue
Block a user