Sha256: f7b184156a31f5bb4bdf0e8392993cdacab430e505005792e7f903f6771be20a

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

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

export { navigateTo };

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coveragebook_components-0.8.3 app/assets/js/helpers/location.js
coveragebook_components-0.8.2 app/assets/js/helpers/location.js