diff --git a/app/javascript/retrospring/controllers/clipboard_controller.ts b/app/javascript/retrospring/controllers/clipboard_controller.ts index 63ee136e..f6227d04 100644 --- a/app/javascript/retrospring/controllers/clipboard_controller.ts +++ b/app/javascript/retrospring/controllers/clipboard_controller.ts @@ -4,11 +4,11 @@ export default class extends Controller { static values = { copy: String - } + }; declare readonly copyValue: string; async copy(){ - await navigator.clipboard.writeText(this.copyValue) + await navigator.clipboard.writeText(this.copyValue); } } diff --git a/app/javascript/retrospring/initializers/stimulus.ts b/app/javascript/retrospring/initializers/stimulus.ts index 862b7fb9..44f3b7e6 100644 --- a/app/javascript/retrospring/initializers/stimulus.ts +++ b/app/javascript/retrospring/initializers/stimulus.ts @@ -40,5 +40,5 @@ export default function (): void { window['Stimulus'].register('theme', ThemeController); window['Stimulus'].register('toast', ToastController); window['Stimulus'].register('share', ShareController); - window['Stimulus'].register('clipboard', ClipboardController) + window['Stimulus'].register('clipboard', ClipboardController); }