Sha256: 426cb285d48c812ff9c7137694247c2edce70af60ae363628fda4e12c3aa7331

Contents?: true

Size: 291 Bytes

Versions: 42

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

42 entries across 42 versions & 1 rubygems

Version Path
coveragebook_components-0.17.0 app/assets/js/helpers/location.js
coveragebook_components-0.16.0 app/assets/js/helpers/location.js
coveragebook_components-0.15.0 app/assets/js/helpers/location.js
coveragebook_components-0.14.0 app/assets/js/helpers/location.js
coveragebook_components-0.13.1 app/assets/js/helpers/location.js
coveragebook_components-0.13.0 app/assets/js/helpers/location.js
coveragebook_components-0.12.2 app/assets/js/helpers/location.js
coveragebook_components-0.12.1 app/assets/js/helpers/location.js
coveragebook_components-0.12.0 app/assets/js/helpers/location.js
coveragebook_components-0.11.0 app/assets/js/helpers/location.js
coveragebook_components-0.10.1.beta.2 app/assets/js/helpers/location.js
coveragebook_components-0.10.1.beta.1 app/assets/js/helpers/location.js
coveragebook_components-0.10.1.beta.0 app/assets/js/helpers/location.js
coveragebook_components-0.10.0 app/assets/js/helpers/location.js
coveragebook_components-0.9.1 app/assets/js/helpers/location.js
coveragebook_components-0.9.0 app/assets/js/helpers/location.js
coveragebook_components-0.8.9 app/assets/js/helpers/location.js
coveragebook_components-0.8.8 app/assets/js/helpers/location.js
coveragebook_components-0.8.7 app/assets/js/helpers/location.js
coveragebook_components-0.8.6 app/assets/js/helpers/location.js