Removed the last inline scripts.

This commit is contained in:
Jan Böhmer 2022-08-03 21:31:35 +02:00
parent 1c7c3bf2c5
commit 3ee8b26ddf
4 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,8 @@
import {Controller} from "@hotwired/stimulus";
export default class extends Controller
{
download(event) {
this.element.href = document.getElementById('pdf_preview').data
}
}