sync
This commit is contained in:
1 parent
a0fe4cb7b1
commit
5cb14ffd44
11 files changed
+157
-96
No files matched your search
+1
-2
@@ -17,12 +17,11 @@ function createUse(type, id) {
|
||||
const path = c.path ||
|
||||
(typeof global._network !== 'undefined' ? global._network.root :
|
||||
(typeof global._net !== 'undefined' ? global._net.root : ''));
|
||||
const ver = c.resver == null ? '' : `?${c.resver}`;
|
||||
const use = document.createElementNS(svgns, 'use');
|
||||
if (id?.length === 1 && id.charCodeAt(0) > 0xf000) {
|
||||
id = dict[id];
|
||||
}
|
||||
use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', `${path}fonts/${type}.svg${ver}#${id}`);
|
||||
use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', `${path}fonts/${type}.svg#${id}`);
|
||||
return use;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user