This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ใ้ฟ็ฌใๆ ้ทใ้ขใใๆญ - ่ฒ่ไธ็... โถ๏ธ:0.3k ๐ฌ:11 | |
ใๅฃ็ดใๅฑฑ่ถ่ฑ - ่่ฒ็็ผ้ๅทฅๆฟ ~ ... โถ๏ธ:0.3k ๐ฌ:12 | |
ใๅฃ็ดใๅคๆฎใใจ็ ๆ่จ - ๅค่็็ผ... โถ๏ธ:0.4k ๐ฌ:7 | |
ใๅฃ็ดใDia - ๆๆ่็็ผ้ๅทฅๆฟ๏ฝไบ... โถ๏ธ:0.2k ๐ฌ:7 | |
ใ้ฟ็ฌใ้ปๆ - ็ฑๅค็็ผ้ๅทฅๆฟ๏ฝ้ป... โถ๏ธ:0.6k ๐ฌ:11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var onRun = function (context) { | |
var doc = context.document; | |
if (![doc fileURL] || [doc isDraft]) { | |
[NSApp displayDialog:@"Please save the document before exporting to Zeplin." withTitle:@"Document not saved"]; | |
return; | |
} | |
if ([doc isDocumentEdited]) { | |
var alert = [NSAlert alertWithMessageText:@"Document not saved" defaultButton:@"Save and Continue" alternateButton:@"Cancel" otherButton:@"Continue" informativeTextWithFormat:@"To capture the latest changes in this Sketch document, Zeplin needs to save it first.\n\nโ๏ธ This might take a bit, depending on the document size."]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |