Skip to content

Commit

Permalink
Merge pull request #36 from miroapp/fix-update-sketch
Browse files Browse the repository at this point in the history
Add workaround for update being unreliable
  • Loading branch information
inderjits1 authored Apr 23, 2024
2 parents 9d6c25a + 61c9e4f commit 5e51c0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Miro.sketchplugin/Contents/Sketch/core/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ function Api() {
var sizeData = '\\"width\\": ' + width + ', \\"height\\":' + height;

if (resourceId != nil && (originalId == nil || [objectId isEqualToString:originalId])) {
dataArray.push(makeDataString(transformationData, sizeData, resourceId));
// dataArray.push(makeDataString(transformationData, sizeData, resourceId));
dataArray.push(makeDataString(transformationData, sizeData)); // v1 api doesnt let us delete/switch images anymore
} else {
dataArray.push(makeDataString(transformationData, sizeData));
}
Expand Down
2 changes: 1 addition & 1 deletion Miro.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Miro",
"identifier" : "com.realtimeboard.sketch.plugin",
"version" : "1.7.0",
"version" : "1.7.1",
"description" : "Export and sync your artboards with Miro",
"authorEmail" : "[email protected]",
"author" : "Miro",
Expand Down

0 comments on commit 5e51c0d

Please sign in to comment.