We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f4771 commit 89f60bcCopy full SHA for 89f60bc
src/lib/samples/zork-firefoxapp/index.js
@@ -11,9 +11,9 @@ const OPTIONS_FILE_PATH = '/zork-options';
11
function checkIfMetricsEnabled() {
12
return OS.File.read(OPTIONS_FILE_PATH).then((array) => {
13
try {
14
- let decoder = new TextDecoder();
15
- let text = decoder.decode(array);
16
- let options = JSON.parse(text);
+ const decoder = new TextDecoder();
+ const text = decoder.decode(array);
+ const options = JSON.parse(text);
17
return options['isMetricsEnabled'] === true;
18
} catch (e) {
19
console.error('Could not parse options file');
0 commit comments