Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
v0.3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
suninthesky committed Jan 13, 2021
1 parent 203af5b commit 4c22528
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions app/javascript/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@
import "../stylesheets/application.sass";
import "../views/iterations.js";

import ahoy from "ahoy.js";
import { Application } from "stimulus";
import { definitionsFromContext } from "stimulus/webpack-helpers";

import { Application } from "stimulus"
import { definitionsFromContext } from "stimulus/webpack-helpers"

const application = Application.start()
const context = require.context("controllers", true, /.js$/)
application.load(definitionsFromContext(context))

document.addEventListener("turbolinks:load", function () {
ahoy.configure({ cookies: false });
ahoy.trackAll();
});
const application = Application.start();
const context = require.context("controllers", true, /.js$/);
application.load(definitionsFromContext(context));

0 comments on commit 4c22528

Please sign in to comment.