Skip to content

Commit

Permalink
Merge pull request #85 from SetoKaiba/master
Browse files Browse the repository at this point in the history
multiple canvas support
  • Loading branch information
kou-yeung authored Mar 31, 2022
2 parents cff3e70 + 72f5db8 commit ab46fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/WebGLSupport/WebGLInput/WebGLInput.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var WebGLInput = {
WebGLInputCreate: function (canvasId, x, y, width, height, fontsize, text, placeholder, isMultiLine, isPassword, isHidden, isMobile) {

var container = document.getElementById(UTF8ToString(canvasId));
var canvas = document.getElementsByTagName('canvas')[0];
var canvas = container.getElementsByTagName('canvas')[0];

// if container is null and have canvas
if (!container && canvas)
Expand Down

0 comments on commit ab46fdf

Please sign in to comment.