commit
56b7f461ea
4 changed files with 64 additions and 8 deletions
|
|
@ -45,7 +45,7 @@
|
||||||
If you are on one of those devices and you still see this message,
|
If you are on one of those devices and you still see this message,
|
||||||
please contact "ghostwriter{at}resonym.com" with the following information:
|
please contact "ghostwriter{at}resonym.com" with the following information:
|
||||||
<br><br>
|
<br><br>
|
||||||
{{ userAgent }}
|
{{ $store.getters.userAgent }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -76,14 +76,8 @@ export default {
|
||||||
gameState() {
|
gameState() {
|
||||||
return this.$store.state.view;
|
return this.$store.state.view;
|
||||||
},
|
},
|
||||||
userAgent() {
|
|
||||||
if (navigator == null) {
|
|
||||||
return "Navigator Undefined";
|
|
||||||
};
|
|
||||||
return navigator.userAgent;
|
|
||||||
},
|
|
||||||
isMobile () {
|
isMobile () {
|
||||||
return this.userAgent.match(/(Navigator Undefined)|iPhone|iPod|Android/) != null;
|
return this.$store.getters.userAgent.match(/(Navigator Undefined)|iPhone|iPod|Android/) != null;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,15 @@ export default new Vuex.Store({
|
||||||
};
|
};
|
||||||
return ``;
|
return ``;
|
||||||
},
|
},
|
||||||
|
userAgent() {
|
||||||
|
if (navigator == null) {
|
||||||
|
return "Navigator Undefined";
|
||||||
|
};
|
||||||
|
return navigator.userAgent;
|
||||||
|
},
|
||||||
|
isFirefox(state, getters) {
|
||||||
|
return getters.userAgent.match(/(Navigator Undefined)|Firefox/g) != null;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
resetState(state) {
|
resetState(state) {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,23 @@
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="$store.getters.isFirefox"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
id="firefox-warning"
|
||||||
|
class="error-message"
|
||||||
|
>
|
||||||
|
<p class="centre">
|
||||||
|
<strong>WARNING:</strong>
|
||||||
|
<br>
|
||||||
|
It appears as though you are using the Firefox web browser,
|
||||||
|
please note that Firefox is not recommended for use with
|
||||||
|
this site. Especially while streaming. This is to have the
|
||||||
|
site look as good as possible.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<button
|
<button
|
||||||
class="clickable"
|
class="clickable"
|
||||||
@click.stop="createGame()"
|
@click.stop="createGame()"
|
||||||
|
|
@ -174,4 +191,13 @@ button {
|
||||||
}
|
}
|
||||||
button:hover { background-color: var(--background2-darken); }
|
button:hover { background-color: var(--background2-darken); }
|
||||||
button:focus { background-color: var(--background2-lighten); }
|
button:focus { background-color: var(--background2-lighten); }
|
||||||
|
|
||||||
|
.error-message {
|
||||||
|
border-color: #F00;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-width: 2px;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 70%
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -30,6 +30,24 @@
|
||||||
@error="$emit(`error`, $event)"
|
@error="$emit(`error`, $event)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="flex-row"
|
||||||
|
v-if="$store.getters.isFirefox"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
id="firefox-warning"
|
||||||
|
class="error-message"
|
||||||
|
>
|
||||||
|
<p class="centre">
|
||||||
|
<strong>WARNING:</strong>
|
||||||
|
<br>
|
||||||
|
It appears as though you are using the Firefox web browser,
|
||||||
|
please note that Firefox is not recommended for use with
|
||||||
|
this site. Especially while streaming. This is to have the
|
||||||
|
site look as good as possible.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex-row">
|
<div class="flex-row">
|
||||||
<button
|
<button
|
||||||
class="clickable"
|
class="clickable"
|
||||||
|
|
@ -174,4 +192,13 @@ div.new-line {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error-message {
|
||||||
|
border-color: #F00;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-width: 2px;
|
||||||
|
margin-top: 10px;
|
||||||
|
width: 70%
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue