Less indentation

merge-requests/30/head
Bob Mottram 2024-08-30 12:02:06 +01:00
parent baece9e606
commit 577bf923c1
1 changed files with 9 additions and 7 deletions

View File

@ -274,7 +274,9 @@ def dangerous_css(filename: str, allow_local_network_access: bool) -> bool:
url_list = content.split('url(') url_list = content.split('url(')
ctr = 0 ctr = 0
for url_str in url_list: for url_str in url_list:
if ctr > 0: if ctr == 0:
ctr = 1
continue
if ')' in url_str: if ')' in url_str:
url_str = url_str.split(')')[0] url_str = url_str.split(')')[0]
if string_contains(url_str, ('http', 'ipfs', 'ipns')): if string_contains(url_str, ('http', 'ipfs', 'ipns')):