mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
20 lines
349 B
JavaScript
20 lines
349 B
JavaScript
export class TestBehavior {
|
|
static init() {
|
|
return {
|
|
state: {},
|
|
};
|
|
}
|
|
|
|
static get id() {
|
|
return "TestBehavior";
|
|
}
|
|
|
|
static isMatch() {
|
|
return window.location.origin === "https://example-com.webrecorder.net";
|
|
}
|
|
|
|
async *run(ctx) {
|
|
ctx.log("In Test Behavior!");
|
|
yield ctx.Lib.getState(ctx, "test-stat");
|
|
}
|
|
}
|