Skip to content

Commit

Permalink
Cleanup stimulus import
Browse files Browse the repository at this point in the history
  • Loading branch information
dancormier committed Apr 4, 2022
1 parent 04ce2f7 commit 4ea6414
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/assets/js/controllers/clipboard.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as Stimulus from "stimulus";
import { Application, Controller } from "stimulus";

(function(){
var application = Stimulus.Application.start();
application.register("clipboard", class extends Stimulus.Controller {
Application.start().register("clipboard", class extends Controller {
static targets = ["source"];
sourceTarget!: HTMLElement;

Expand Down

0 comments on commit 4ea6414

Please sign in to comment.