2021-03-11 05:43:45 +01:00
|
|
|
import $ from "jquery";
|
|
|
|
|
2021-02-28 01:07:47 +01:00
|
|
|
import * as hashchange from "./hashchange";
|
|
|
|
|
2020-12-02 20:34:15 +01:00
|
|
|
if (window.electron_bridge !== undefined) {
|
|
|
|
window.electron_bridge.on_event("logout", () => {
|
|
|
|
$("#logout_form").trigger("submit");
|
|
|
|
});
|
|
|
|
|
|
|
|
window.electron_bridge.on_event("show-keyboard-shortcuts", () => {
|
|
|
|
hashchange.go_to_location("keyboard-shortcuts");
|
|
|
|
});
|
|
|
|
|
|
|
|
window.electron_bridge.on_event("show-notification-settings", () => {
|
|
|
|
hashchange.go_to_location("settings/notifications");
|
|
|
|
});
|
|
|
|
}
|