forked from 0x2620/oxjs
include viewbox in svg files. remove temp fix
This commit is contained in:
parent
18d619138f
commit
b0c0bd36be
113 changed files with 112 additions and 114 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue