Skip to content

Commit

Permalink
Fixed a bug introduced by 56ab00b that broke the mobile PwnedHub page.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanmaster53 committed May 20, 2024
1 parent 950df1f commit 61d737e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnedhub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def markdown_filter(data):
@app.before_request
def render_mobile():
if any(x in request.user_agent.string.lower() for x in ['android', 'iphone', 'ipad']):
if not request.endpoint.startswith('static'):
if not request.endpoint in ('static', 'common.static'):
return render_template('mobile.html')

@app.before_request
Expand Down

0 comments on commit 61d737e

Please sign in to comment.