From 812c7bbb663c85aa56d23150609247c6a9bf062e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Tue, 17 Oct 2023 01:23:11 +0200 Subject: [PATCH] We can't have nice things and bs3 The `$(this).tab('show');` in `assets/frontpage/initFrontpage.js` was broken, since `.tab` was not defined. `.tab` is a bootstrap3-extension to jQuery https://getbootstrap.com/docs/3.4/javascript/#tabs. To make that extension method available you need to rely on the side-effects of `import 'bootstrap'`, which only applies it to the _global_ $/jQuery. When you `import $ from 'jquery'`, that creates a local and specifically non-global `$`. Generally speaking you would then immediately set your `$` to be the global `$` by using `globalThis.jQuery = globalThis.$ = $`. We import and thus define the global `$` from a `