You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #78 Fix UX Turbo usage without Streams (tgalopin)
This PR was merged into the main branch.
Discussion
----------
Fix UX Turbo usage without Streams
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | -
| Tickets | -
| License | MIT
Currently, UX Turbo doesn't work without the Mercure bridge installed and configured as it requires JS to load it. This adds some JS in the UX Turbo package to automatically load Turbo when installed using an empty Stimulus controller.
Commits
-------
5b7129a Fix UX Turbo usage without Streams
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
19
+
20
+
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,writable: true,configurable: true}});if(superClass)_setPrototypeOf(subClass,superClass);}
function_assertThisInitialized(self){if(self===void0){thrownewReferenceError("this hasn't been initialised - super() hasn't been called");}returnself;}
0 commit comments