mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-13 16:45:52 -04:00
displays web logs in GUI now. fixes #33
This commit is contained in:
parent
67ea5b5c2c
commit
927282a432
4 changed files with 67 additions and 14 deletions
|
@ -44,3 +44,12 @@ def copy_url():
|
|||
clipboard.set_text(url)
|
||||
return ''
|
||||
|
||||
@app.route("/check_for_requests")
|
||||
def check_for_requests():
|
||||
global onionshare
|
||||
try:
|
||||
r = onionshare.request_q.get(False)
|
||||
return json.dumps(r)
|
||||
except onionshare.Queue.Empty:
|
||||
return ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue