Skip to content

Instantly share code, notes, and snippets.

@dol
Created March 14, 2016 00:08
Show Gist options
  • Save dol/10b94d07dfc29fed7dd4 to your computer and use it in GitHub Desktop.
Save dol/10b94d07dfc29fed7dd4 to your computer and use it in GitHub Desktop.
NW issue with 'new Image' on 0.12
<!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>
{
"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