mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 22:32:58 -04:00
Remove reset of web app path in receive mode
This commit is contained in:
parent
66e85497ef
commit
35b524439f
1 changed files with 1 additions and 4 deletions
|
@ -18,9 +18,6 @@ class ReceiveModeWeb(object):
|
||||||
|
|
||||||
self.web = web
|
self.web = web
|
||||||
|
|
||||||
# Reset assets path
|
|
||||||
self.web.app.static_folder=self.common.get_resource_path('static')
|
|
||||||
|
|
||||||
self.can_upload = True
|
self.can_upload = True
|
||||||
self.upload_count = 0
|
self.upload_count = 0
|
||||||
self.uploads_in_progress = []
|
self.uploads_in_progress = []
|
||||||
|
@ -34,7 +31,7 @@ class ReceiveModeWeb(object):
|
||||||
@self.web.app.route("/")
|
@self.web.app.route("/")
|
||||||
def index():
|
def index():
|
||||||
self.web.add_request(self.web.REQUEST_LOAD, request.path)
|
self.web.add_request(self.web.REQUEST_LOAD, request.path)
|
||||||
r = make_response(render_template('receive.html',
|
r = make_response(render_template('receive.html',
|
||||||
static_url_path=self.web.static_url_path))
|
static_url_path=self.web.static_url_path))
|
||||||
return self.web.add_security_headers(r)
|
return self.web.add_security_headers(r)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue