Skip to content

Commit 4ea6414

Browse files
committed
Cleanup stimulus import
1 parent 04ce2f7 commit 4ea6414

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/assets/js/controllers/clipboard.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import * as Stimulus from "stimulus";
1+
import { Application, Controller } from "stimulus";
22

33
(function(){
4-
var application = Stimulus.Application.start();
5-
application.register("clipboard", class extends Stimulus.Controller {
4+
Application.start().register("clipboard", class extends Controller {
65
static targets = ["source"];
76
sourceTarget!: HTMLElement;
87

0 commit comments

Comments
 (0)