Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Modify 'iwsy init' to take path
  • Loading branch information
graham-trott committed Jul 15, 2020
commit 801600e2a10b0fa4cdcd778f4b7bef8a73ceef01
22 changes: 13 additions & 9 deletions dist/plugins/iwsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ const EasyCoder_IWSY = {
}
break;
case `init`:
const cdn = compiler.getNextValue();
compiler.addCommand({
domain: `iwsy`,
keyword: `iwsy`,
lino,
action,
cdn
});
return true;
try {
const cdn = compiler.getNextValue();
compiler.addCommand({
domain: `iwsy`,
keyword: `iwsy`,
lino,
action,
cdn
});
return true;
} catch (err) {
throw Error(`iwsy init: No CDN URL given`);
}
case `stop`:
compiler.next();
compiler.addCommand({
Expand Down
22 changes: 13 additions & 9 deletions js/plugins/iwsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ const EasyCoder_IWSY = {
}
break;
case `init`:
const cdn = compiler.getNextValue();
compiler.addCommand({
domain: `iwsy`,
keyword: `iwsy`,
lino,
action,
cdn
});
return true;
try {
const cdn = compiler.getNextValue();
compiler.addCommand({
domain: `iwsy`,
keyword: `iwsy`,
lino,
action,
cdn
});
return true;
} catch (err) {
throw Error(`iwsy init: No CDN URL given`);
}
case `stop`:
compiler.next();
compiler.addCommand({
Expand Down