bill пре 1 месец
родитељ
комит
4d8067bd79
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/hook/use-expose.ts

+ 1 - 1
src/core/hook/use-expose.ts

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