mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 21:29:38 +02:00
* chore: add formatting and linting for javascript code relates to #1295 * use spaces instaed * add to recommended extensions * only enforce lint * auto save
17 lines
339 B
JavaScript
17 lines
339 B
JavaScript
import { install, uninstall } from "@github/hotkey";
|
|
import { Controller } from "@hotwired/stimulus";
|
|
|
|
// Connects to data-controller="hotkey"
|
|
export default class extends Controller {
|
|
connect() {
|
|
install(this.element);
|
|
}
|
|
|
|
disconnect() {
|
|
uninstall(this.element);
|
|
}
|
|
|
|
navigateBack(event) {
|
|
window.history.back();
|
|
}
|
|
}
|