Created
March 14, 2016 00:08
-
-
Save dol/10b94d07dfc29fed7dd4 to your computer and use it in GitHub Desktop.
NW issue with 'new Image' on 0.12
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> | |
<title>Hello Node Webkit</title> | |
</head> | |
<body> | |
<div id="my"></div> | |
<script> | |
var ctx = document.getElementById('my'); | |
var image = new Image(); | |
image.src = 'https://walter.trakt.us/images/movies/000/187/655/posters/medium/b6e2608720.jpg'; | |
ctx.appendChild(image); | |
</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" : "nw-demo", | |
"main" : "index.html", | |
"window" : { | |
"toolbar" : true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment