add base goffee
This commit is contained in:
parent
c95e8a9245
commit
ac2cfa9fe1
108 changed files with 64018 additions and 0 deletions
14
storage/public/app.js
Normal file
14
storage/public/app.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
console.log("Start Goffee app");
|
||||
|
||||
let elem = document.querySelector('#signout');
|
||||
if (elem) {
|
||||
document.getElementById("signout").onclick = (_event) => {
|
||||
fetch('/signout').then(response => response.json())
|
||||
.then(data => {
|
||||
if (data['message'] == "signed out successfully") {
|
||||
// Refresh the page
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue