settings.js: increase initial update interval to 1.5s

This commit is contained in:
codl 2017-09-01 01:06:21 +02:00
parent 2a6d0b612f
commit 6056d1c28f
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ import Banner from '../components/Banner.html';
// silently send_settings in case the user changed settings while the page was loading
send_settings(get_all_inputs());
let viewer_update_interval = 500;
let viewer_update_interval = 1500;
function fetch_viewer(){
viewer_update_interval *= 2;
@ -139,7 +139,7 @@ import Banner from '../components/Banner.html';
document.querySelector('#display-name').textContent = viewer.display_name || viewer.screen_name;
document.querySelector('#display-name').title = '@' + viewer.screen_name;
document.querySelector('#avatar').src = viewer.avatar_url;
viewer_update_interval = 500;
viewer_update_interval = 1500;
if(viewer.next_delete){
viewer.next_delete = new Date(viewer.next_delete);