Created
March 7, 2018 16:18
-
-
Save dkstevekwak/5fe183357ebc1d4e9b177e17f30a2d22 to your computer and use it in GitHub Desktop.
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
| /* Initialize CSInterface */ | |
| var csInterface = new CSInterface(); | |
| /* Helper function to create and return a promise object */ | |
| function runEvalScript(script) { | |
| return new Promise(function(resolve, reject){ | |
| csInterface.evalScript(script, resolve); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment