1
0
Fork 0
forked from 0x2620/oxjs

include viewbox in svg files. remove temp fix

This commit is contained in:
j 2023-07-03 19:01:15 +05:30
commit b0c0bd36be
113 changed files with 112 additions and 114 deletions

View file

@ -82,8 +82,6 @@ def build_oxjs(downloads=False, geo=False):
svg = read_text(path + filename)
svg = re.sub('\n\s*', '', svg)
svg = re.sub('<!--.+?-->', '', svg)
# temporary fix for Chrome SVG bug, remove later!
svg = re.sub('width="256" height="256"', 'width="10" height="10" viewBox="0 0 255 255"', svg)
# end fix
ui_images[filename[:-4]] = svg
if filename.startswith('symbolLoading'):