Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Mar 16, 2023
1 parent 24b6242 commit df4efd0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ export default class BaseCommand {
video,
} = event;

if(!url) {
throw new Error("No url specified");
if (url) {
console.log(`Received URL: ${url}`);
} else if (content) {
console.log(`Setting content ${content.split("\n")[0]} ... `);
} else {
throw new Error("No url or content specified");
}


console.log(`Received URL: ${url}`);

const { page } = await this.createPage({
mobile,
width,
Expand Down

0 comments on commit df4efd0

Please sign in to comment.