Skip to content

Commit c0f0287

Browse files
slimbuckDonovan Hutchence
andauthored
fix viewer (playcanvas#1957)
Co-authored-by: Donovan Hutchence <dhutchence@snapchat.com>
1 parent b47619a commit c0f0287

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/glb-viewer/src/viewer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ Object.assign(Viewer.prototype, {
311311

312312
/* eslint-disable no-unused-vars */
313313

314+
var viewer;
315+
314316
var main = function () {
315-
var viewer = new Viewer(document.getElementById("application-canvas"));
317+
viewer = new Viewer(document.getElementById("application-canvas"));
316318
};
317319

318320
/* eslint-enable no-unused-vars */

0 commit comments

Comments
 (0)