mirror of
https://github.com/romancm/gamebrary
synced 2024-11-15 07:57:19 +00:00
Detect if device supports touch on login
This commit is contained in:
parent
58da55f002
commit
5ccc12a171
2 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,8 @@ import Vue from 'vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
SET_USER(state, data) {
|
SET_USER(state, data) {
|
||||||
|
state.isTouchDevice = ('ontouchstart' in window);
|
||||||
|
|
||||||
state.user = {
|
state.user = {
|
||||||
uid: data.uid,
|
uid: data.uid,
|
||||||
displayName: data.displayName,
|
displayName: data.displayName,
|
||||||
|
|
|
@ -9,4 +9,5 @@ export default {
|
||||||
games: {},
|
games: {},
|
||||||
publicGameData: {},
|
publicGameData: {},
|
||||||
game: null,
|
game: null,
|
||||||
|
isTouchDevice: false,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue