Last active
December 27, 2021 23:51
-
-
Save ghostoy/183649c64060b088a610ebc142fae3d2 to your computer and use it in GitHub Desktop.
test nwjc
This file contains 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
console.log('bar'); |
This file contains 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
console.log('foo'); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<link rel="stylesheet" href=""> | |
</head> | |
<body> | |
<button type="button" onclick="test()">Test</button> | |
<script> | |
function test() { | |
var bins = ['foo.bin', 'bar.bin']; | |
for(var i = 0; i < bins.length; i++) { | |
console.log(`evalNWBin(null, '${process.cwd() + '/' + bins[i]}')`) | |
nw.Window.get().evalNWBin(null, process.cwd() + '/'+ bins[i]); | |
} | |
} | |
test(); | |
</script> | |
</body> | |
</html> |
This file contains 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
{ | |
"name": "nwjc-test", | |
"main": "index.html", | |
"chromium-args": "--enable-logging=stderr" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment