-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect if other tabs are running (#123)
* detect if another tab is already running * detect if another tab is already running * register broadcast channel earlier
- Loading branch information
Showing
3 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<div | ||
class="fullscreen bg-dark text-white text-center q-pa-md flex flex-center" | ||
> | ||
<div> | ||
<div class="text-h3">Nope.</div> | ||
<div class="text-h5 q-ma-lg text-grey"> | ||
Another tab is already running. Close this tab and try again. | ||
</div> | ||
<q-btn | ||
rounded | ||
class="q-mt-md" | ||
color="white" | ||
text-color="black" | ||
unelevated | ||
to="/" | ||
label="Retry" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from "vue"; | ||
export default defineComponent({ | ||
name: "AlreadyRunning", | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters