summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAvindra Goolcharan <aavindraa@gmail.com>2020-12-04 22:33:07 -0500
committerAvindra Goolcharan <aavindraa@gmail.com>2020-12-08 01:56:22 -0500
commit1ee2558b23490efec117f2a3b94a970e5c9ebb89 (patch)
tree1166b3f31cb9e839a015cd8f0bc3bdcd1c7e9039 /src/plugins
parent9d51fb579bb4655f6740096f17f1ced50258c28f (diff)
wasm/js: fix invalid restartCount reference
The `restartCount` variable on line 245 is mutating global scope. The PR makes it consistent with the rest ob the code (`self.restartCount`). It was observed when importing the qtloader in a typical Webpack/Babel build environment. Change-Id: I338285f4f6bcb80df0c16d80cc3ebfec944a8be7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/wasm/qtloader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js
index ef4a6ec2b9..b159cd63ab 100644
--- a/src/plugins/platforms/wasm/qtloader.js
+++ b/src/plugins/platforms/wasm/qtloader.js
@@ -242,7 +242,7 @@ function QtLoader(config)
publicAPI.setFontDpi = setFontDpi;
publicAPI.fontDpi = fontDpi;
- restartCount = 0;
+ self.restartCount = 0;
function fetchResource(filePath) {
var fullPath = config.path + filePath;