Skip to content

Commit df4efd0

Browse files
committed
wip
1 parent 24b6242 commit df4efd0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/BaseCommand.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,14 @@ export default class BaseCommand {
104104
video,
105105
} = event;
106106

107-
if(!url) {
108-
throw new Error("No url specified");
107+
if (url) {
108+
console.log(`Received URL: ${url}`);
109+
} else if (content) {
110+
console.log(`Setting content ${content.split("\n")[0]} ... `);
111+
} else {
112+
throw new Error("No url or content specified");
109113
}
110114

111-
112-
console.log(`Received URL: ${url}`);
113-
114115
const { page } = await this.createPage({
115116
mobile,
116117
width,

0 commit comments

Comments
 (0)