don't refresh boards if doc hidden
parent
b256db2698
commit
018f6692a9
|
@ -7,16 +7,16 @@
|
|||
},
|
||||
"general": {
|
||||
"announce_node": true,
|
||||
"dev_mode": true,
|
||||
"dev_mode": false,
|
||||
"display_header": true,
|
||||
"ephemeral_tunnels": false,
|
||||
"hide_created_blocks": true,
|
||||
"insert_deniable_blocks": false,
|
||||
"insert_deniable_blocks": true,
|
||||
"max_block_age": 2678400,
|
||||
"minimum_block_pow": 1,
|
||||
"minimum_send_pow": 1,
|
||||
"minimum_block_pow": 5,
|
||||
"minimum_send_pow": 5,
|
||||
"public_key": "",
|
||||
"random_bind_ip": false,
|
||||
"random_bind_ip": true,
|
||||
"security_level": 0,
|
||||
"show_notifications": true,
|
||||
"store_plaintext_blocks": true,
|
||||
|
@ -30,12 +30,12 @@
|
|||
},
|
||||
"file": {
|
||||
"output": true,
|
||||
"remove_on_exit": false
|
||||
"remove_on_exit": true
|
||||
},
|
||||
"verbosity": "default"
|
||||
},
|
||||
"onboarding": {
|
||||
"done": true
|
||||
"done": false
|
||||
},
|
||||
"peers": {
|
||||
"max_connect": 1000,
|
||||
|
@ -64,7 +64,7 @@
|
|||
"transports": {
|
||||
"lan": true,
|
||||
"manual_disk": true,
|
||||
"tor": false
|
||||
"tor": true
|
||||
},
|
||||
"ui": {
|
||||
"theme": "dark"
|
||||
|
|
|
@ -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')
|
||||
function autoRefresh(){
|
||||
if (! checkbox.checked){return}
|
||||
if (! checkbox.checked || document.hidden){return}
|
||||
getBlocks()
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
1585212325
|
||||
1585525008
|
Loading…
Reference in New Issue