From 62aba602b48d266d13c57ab9966226d417c9205f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=20Mu=C3=B1oz?= Date: Mon, 6 Nov 2017 12:10:02 +0100 Subject: [PATCH] Removed timeout from showMessage, since it's deprecated in Sketch 48 --- src/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin.js b/src/plugin.js index e485b73..7bffe85 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -1,6 +1,6 @@ -function showMessage(txt, timeout = 5){ - NSApplication.sharedApplication().orderedDocuments().firstObject().displayMessage_timeout(txt, timeout) +function showMessage(txt){ + NSApplication.sharedApplication().orderedDocuments().firstObject().displayMessage(txt) } function runImageOptim(context, files, hidden) { @@ -10,7 +10,7 @@ function runImageOptim(context, files, hidden) { const bundleIdentifier = "net.pornel.ImageOptim"; const appURL = workspace.URLForApplicationWithBundleIdentifier(bundleIdentifier); if (!appURL) { - showMessage("ImageOptim not installed", 10); + showMessage("ImageOptim not installed"); workspace.openURL(NSURL.URLWithString("https://imageoptim.com/mac?sketch")); return; }