Skip to content

Commit

Permalink
Merge pull request #74 from FitzerIRL/temp_LightningSpark_fixSVG
Browse files Browse the repository at this point in the history
Fix createSvg() to use 'url' not 'src' - CRASH
  • Loading branch information
mfiess authored Apr 21, 2020
2 parents 5600a5e + 536a374 commit faa82ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/spark/SparkPlatform.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class SparkPlatform {
if (sparkQueryParams && sparkQueryParams.sparkProxyServer) {
proxyServer = sparkQueryParams.sparkProxyServer;
}
let imageResource = sparkscene.create({t:"imageResource", url:src, proxy:proxyServer});
let imageResource = sparkscene.create({t:"imageResource", url: url, w: w, h: h, proxy:proxyServer});
let imageObj = sparkscene.create({ t: "image", resource:imageResource});
imageObj.ready.then( function(obj) {
let canvas = {};
Expand Down

0 comments on commit faa82ea

Please sign in to comment.