Doesn't work in 39.1
I'm getting just a blank page in browser with no image preview.
Any luck, Matt?
Your plugin is much better than the mirror web preview
Not yet - hoping to get to it very soon, though! Thanks for the reminder.
@matt-curtis For me Sketch Server works fine on Sketch 40.1.
@ajilderda humm, maybe it conflicts with some other plugins on my side
@alexeiboronnikov if you could pull the crash/error you're getting from Console.app, that would help a lot.
For me it does not work. I get a blank page. but the page is being served; not sure what could be the reason for the blank page. My Sketch version is 44.1 (41455)
Page source from the browser:
<style>
html {
height: 100%;
}
body {
margin: 0; height: 100%;
cursor: pointer;
}
#image {
min-width: 100%;
min-height: 100%;
background-repeat: no-repeat;
background-position: center;
}
</style>
<script type="text/javascript">
window.addEventListener("DOMContentLoaded", function(){
var body = document.body;
// Reload on tap
body.addEventListener("click", function(){
window.location.reload();
});
// Set & Size Image
var size = { width: 0, height: 0 }
var imageElement = document.getElementById("image");
var query = window.location.search;
imageElement.style.width = size.width+"px";
imageElement.style.height = size.height+"px";
imageElement.style.backgroundSize = size.width+"px "+size.height+"px";
imageElement.style.backgroundImage = "url('/image"+query+"')";
}, false);
</script>
</head>
<body><div id="image"/></body>
Absolutely the same!
Probably the artboard image export is wrong. Should get some time this week to fix this :)
Any news here? Tried it in sketch 44.1 and got a blank page. Could you fix it? The idea is awesome!