|
|
@@ -66,7 +66,7 @@ export const useAutoPaste = () => {
|
|
|
async handler(pos, val, type) {
|
|
|
const url = await resourceHandler(val, type);
|
|
|
if (type.includes("svg")) {
|
|
|
- const style = await getIconStyle(url, 100, 100);
|
|
|
+ const style = await getIconStyle(window.platform.getResource(url), 100, 100);
|
|
|
drawAPI.addShape(
|
|
|
"icon",
|
|
|
{ ...style, fill: undefined, stroke: undefined },
|