Skip to content

Commit

Permalink
Made simpleTurboEnabled configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
stealz committed Dec 13, 2023
1 parent eb27d89 commit ca2e604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/navigate.turbo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const navigateTurbo = {};
navigateTurbo.cache = {};
navigateTurbo.pending = null;
navigateTurbo.originalTurboAreaElement = null;
navigateTurbo.simpleTurboEnabled = true;

navigateTurbo.init = (config) => {
navigateTurbo.turboAreaSelector = config.turboAreaSelector || "main";
navigateTurbo.applyOverlaySelector = config.applyOverlaySelector || ".turbo";
navigateTurbo.overlayClass = config.overlayClass || "loading-overlay";
navigateTurbo.routes = config.routes || [];
navigateTurbo.simpleTurboEnabled = config.simpleTurboEnabled || true;

if (!navigateTurbo.routes.length) {
console.warn("Navigate Turbo: No routes provided. Navigate Turbo will not work.");
Expand Down

0 comments on commit ca2e604

Please sign in to comment.