don't refresh boards if doc hidden

master
Kevin Froman 2020-03-29 18:49:51 -05:00
parent b256db2698
commit 018f6692a9
3 changed files with 28 additions and 10 deletions

View File

@ -7,16 +7,16 @@
}, },
"general": { "general": {
"announce_node": true, "announce_node": true,
"dev_mode": true, "dev_mode": false,
"display_header": true, "display_header": true,
"ephemeral_tunnels": false, "ephemeral_tunnels": false,
"hide_created_blocks": true, "hide_created_blocks": true,
"insert_deniable_blocks": false, "insert_deniable_blocks": true,
"max_block_age": 2678400, "max_block_age": 2678400,
"minimum_block_pow": 1, "minimum_block_pow": 5,
"minimum_send_pow": 1, "minimum_send_pow": 5,
"public_key": "", "public_key": "",
"random_bind_ip": false, "random_bind_ip": true,
"security_level": 0, "security_level": 0,
"show_notifications": true, "show_notifications": true,
"store_plaintext_blocks": true, "store_plaintext_blocks": true,
@ -30,12 +30,12 @@
}, },
"file": { "file": {
"output": true, "output": true,
"remove_on_exit": false "remove_on_exit": true
}, },
"verbosity": "default" "verbosity": "default"
}, },
"onboarding": { "onboarding": {
"done": true "done": false
}, },
"peers": { "peers": {
"max_connect": 1000, "max_connect": 1000,
@ -64,7 +64,7 @@
"transports": { "transports": {
"lan": true, "lan": true,
"manual_disk": true, "manual_disk": true,
"tor": false "tor": true
}, },
"ui": { "ui": {
"theme": "dark" "theme": "dark"

View File

@ -1,6 +1,24 @@
/*
Onionr - Private P2P Communication
Auto refresh board posts
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var checkbox = document.getElementById('refreshCheckbox') var checkbox = document.getElementById('refreshCheckbox')
function autoRefresh(){ function autoRefresh(){
if (! checkbox.checked){return} if (! checkbox.checked || document.hidden){return}
getBlocks() getBlocks()
} }

View File

@ -1 +1 @@
1585212325 1585525008