Skip to content

Commit

Permalink
fix lass extension
Browse files Browse the repository at this point in the history
  • Loading branch information
estea8968 committed Sep 8, 2020
1 parent 4777138 commit c5c9ad1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/lib.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -308799,7 +308799,7 @@ var gasoLASS = /*#__PURE__*/function () {
console.log('returndata:', returndata);

if (attr == 'AQI') {
return typeof data === 'string' ? data : JSON.stringify(_this4.aqidata.AQI);
return returndata[2]; //return typeof data === 'string' ? data : JSON.stringify(this.aqidata.AQI);
}

if (attr == 'PM2.5') {
Expand Down Expand Up @@ -308832,8 +308832,8 @@ var gasoLASS = /*#__PURE__*/function () {
try {
var parsed = JSON.parse(this.data.data);
console.warn('parsed ', attr, parsed);
var _data = parsed[attr];
return typeof _data === 'string' ? _data : JSON.stringify(_data);
var data = parsed[attr];
return typeof data === 'string' ? data : JSON.stringify(data);
} catch (err) {
return "Error: ".concat(err);
}
Expand Down
2 changes: 1 addition & 1 deletion app/lib.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions node_modules/scratch-vm/src/extensions/scratch3_lass/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5c9ad1

Please sign in to comment.