Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 045fbe4

Browse files
committed
[[ Bug 21615 ]] Fix emscripten release build error
This patch fixes an emscripten build error that occurs when building the emscripten standalone in release mode. This is caused by the use of an JavaScript feature (template literals) that is unrecognised by older emscripten emsdk tools.
1 parent 1a1f5ab commit 045fbe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/em-event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ mergeInto(LibraryManager.library, {
131131
});
132132

133133
// Add listener for changes to device pixel ratio
134-
var matchQuery = `(resolution: ${window.devicePixelRatio}dppx)`;
134+
var matchQuery = "(resolution: " + window.devicePixelRatio + "dppx)";
135135
window.matchMedia(matchQuery).addListener(LiveCodeEvents._handleDevicePixelRatioChanged);
136136

137137
LiveCodeEvents._initialised = true;

0 commit comments

Comments
 (0)