mirror of
https://github.com/taroved/pol
synced 2025-05-21 08:30:24 -07:00
fix mobile
This commit is contained in:
parent
698b712244
commit
0d8ec7a7b5
@ -95,6 +95,9 @@ class Downloader(object):
|
||||
if attr.startswith('on'):
|
||||
del bad.attrib[attr]
|
||||
|
||||
# make clickable for mobile
|
||||
bad.attrib['onclick'] = ""
|
||||
|
||||
# sanitize forms
|
||||
if bad.tag == 'form':
|
||||
bad.attrib['onsubmit'] = "return false"
|
||||
|
@ -7,6 +7,7 @@ mysqlclient==1.3.7
|
||||
w3lib==1.17.0
|
||||
feedgenerator==1.8
|
||||
brotli==0.6.0
|
||||
sqlparse==0.2.4
|
||||
#sudo apt-get install nodejs npm
|
||||
#sudo npm install -g less
|
||||
#sudo ln -s /usr/bin/nodejs /usr/bin/node
|
||||
|
Loading…
x
Reference in New Issue
Block a user