Sha256: 0105e7c36f44ea20674bf8b0cefd6024871ec43e13e343828e5fd0d324a542bf

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

import "@hotwired/turbo-rails";
import { initAll } from "@katalyst/govuk-formbuilder";
import "@rails/actiontext";
import "trix";

import "koi/controllers";
import "koi/elements";

/** Let GOVUK know that we've got JS enabled */
window.addEventListener("turbo:load", () => {
  document.body.classList.toggle("js-enabled", true);
  document.body.classList.toggle(
    "govuk-frontend-supported",
    "noModule" in HTMLScriptElement.prototype,
  );
  initAll();
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katalyst-koi-4.14.1 app/assets/javascripts/koi/admin.js
katalyst-koi-4.14.0 app/assets/javascripts/koi/admin.js
katalyst-koi-4.13.2 app/assets/javascripts/koi/admin.js
katalyst-koi-4.13.0 app/assets/javascripts/koi/admin.js
katalyst-koi-4.12.6 app/assets/javascripts/koi/admin.js