This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
skouter
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add logout function
master
Immanuel Onyeka
1 year ago
parent
9c7ac0a199
commit
2a66cacd6f
2 changed files
with
7 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
components/app.vue
+6
-5
components/sign-out.vue
+ 1
- 0
components/app.vue
View File
@@ -153,6 +153,7 @@ function start() {
}).catch(error => {
console.log("An error occured %O", error)
this.loadingError = "Could not initialize app."
window.location.hash = 'login'
})
}
+ 6
- 5
components/sign-out.vue
View File
@@ -3,20 +3,21 @@
<section class="inputs centered">
<h4>Are you sure you want to log out?</h4>
<button>Logout</button>
<button
@click="logout"
>Logout</button>
</section>
</div>
</template>
<script>
function ready() {
function logout() {
document.cookie= "skouter="
window.location.reload()
}
export default {
methods: {
ready
logout
}
}
</script>
</script>
Write
Preview
Loading…
Cancel
Save