mirror of
https://github.com/romancm/gamebrary
synced 2024-11-14 23:47:08 +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 {
|
||||
SET_USER(state, data) {
|
||||
state.isTouchDevice = ('ontouchstart' in window);
|
||||
|
||||
state.user = {
|
||||
uid: data.uid,
|
||||
displayName: data.displayName,
|
||||
|
|
|
@ -9,4 +9,5 @@ export default {
|
|||
games: {},
|
||||
publicGameData: {},
|
||||
game: null,
|
||||
isTouchDevice: false,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue