Skip to content

Commit

Permalink
fix: Properly handle theme config with invalid props.
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Dec 19, 2024
1 parent 3e7d93e commit d25461d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/core/util/webkit_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def add_conditional_data(path: str, data: dict):
parsed_patches = parse_conditional_patches(data)

for patch in parsed_patches:
if patch['fileType'] == 'TargetCss':
if patch['fileType'] == 'TargetCss' and patch['targetPath'] is not None and patch['matchString'] is not None:
add_browser_css(os.path.join(path, patch['targetPath']), patch['matchString'])
elif patch['fileType'] == 'TargetJs':
elif patch['fileType'] == 'TargetJs' and patch['targetPath'] is not None and patch['matchString'] is not None:
add_browser_js(os.path.join(path, patch['targetPath']), patch['matchString'])

0 comments on commit d25461d

Please sign in to comment.