* fix: emits use ev instead of e

* fix: errors use err instead of e

* fix: replace use of data where possible

* fix: events use evt instead of e

* fix: use strict equals

* fix: use emoji instead of e

* fix: vue lints
This commit is contained in:
Johann150
2022-05-26 15:53:09 +02:00
committed by GitHub
parent 9c80403072
commit 3dae18b93c
69 changed files with 255 additions and 257 deletions

View File

@ -43,7 +43,7 @@ async function install() {
let ast;
try {
ast = parse(code.value);
} catch (e) {
} catch (err) {
os.alert({
type: 'error',
text: 'Syntax error :('
@ -60,8 +60,8 @@ async function install() {
return;
}
const data = meta.get(null);
if (data == null) {
const metadata = meta.get(null);
if (metadata == null) {
os.alert({
type: 'error',
text: 'No metadata found :('
@ -69,7 +69,7 @@ async function install() {
return;
}
const { name, version, author, description, permissions, config } = data;
const { name, version, author, description, permissions, config } = metadata;
if (name == null || version == null || author == null) {
os.alert({
type: 'error',