Using Visibility API to lighten ws load when in background, hopefully to sort Chrome ws lag issue

This commit is contained in:
James Barnsley
2018-11-21 21:33:26 +13:00
parent 85c9f25247
commit 063402197a
7 changed files with 81 additions and 9 deletions

View File

@ -50,6 +50,13 @@ export function setSlimMode(slim_mode){
}
}
export function setWindowFocus(window_focus){
return {
type: 'SET_WINDOW_FOCUS',
window_focus: window_focus
}
}
export function hideContextMenu(){
return {
type: 'HIDE_CONTEXT_MENU'