Sha256: 5bc3332a24520b84a532babf2d8f90393cf82715b894b3eaf02915d11e602d55

Contents?: true

Size: 226 Bytes

Versions: 6

Compression:

Stored size: 226 Bytes

Contents

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

export { navigateTo };

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
coveragebook_components-0.8.1 app/assets/js/helpers/location.js
coveragebook_components-0.8.0 app/assets/js/helpers/location.js
coveragebook_components-0.8.0.beta.3 app/assets/js/helpers/location.js
coveragebook_components-0.8.0.beta.2 app/assets/js/helpers/location.js
coveragebook_components-0.8.0.beta.1 app/assets/js/helpers/location.js
coveragebook_components-0.7.10 app/assets/js/helpers/location.js