Sha256: 426cb285d48c812ff9c7137694247c2edce70af60ae363628fda4e12c3aa7331

Contents?: true

Size: 291 Bytes

Versions: 41

Compression:

Stored size: 291 Bytes

Contents

function navigateTo(url, options = {}) {
  if (window.Turbo && options.turbo === true) {
    delete options.turbo;
    turboOptions = Object.assign({ action: "advance" }, options);
    window.Turbo.visit(url, turboOptions);
  } else {
    location.assign(url);
  }
}

export { navigateTo };

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/assets/js/helpers/location.js
coveragebook_components-0.19.7 app/assets/js/helpers/location.js
coveragebook_components-0.19.6 app/assets/js/helpers/location.js
coveragebook_components-0.19.5 app/assets/js/helpers/location.js
coveragebook_components-0.19.4 app/assets/js/helpers/location.js
coveragebook_components-0.19.3 app/assets/js/helpers/location.js
coveragebook_components-0.19.2 app/assets/js/helpers/location.js
coveragebook_components-0.19.1 app/assets/js/helpers/location.js
coveragebook_components-0.19.0 app/assets/js/helpers/location.js
coveragebook_components-0.18.8 app/assets/js/helpers/location.js
coveragebook_components-0.18.7 app/assets/js/helpers/location.js
coveragebook_components-0.18.0 app/assets/js/helpers/location.js
coveragebook_components-0.17.7 app/assets/js/helpers/location.js
coveragebook_components-0.17.6 app/assets/js/helpers/location.js
coveragebook_components-0.17.5 app/assets/js/helpers/location.js
coveragebook_components-0.17.4 app/assets/js/helpers/location.js
coveragebook_components-0.17.3 app/assets/js/helpers/location.js
coveragebook_components-0.17.2 app/assets/js/helpers/location.js
coveragebook_components-0.17.1 app/assets/js/helpers/location.js
coveragebook_components-0.17.0 app/assets/js/helpers/location.js