mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00

replace webrecorder.net -> old.webrecorder.net to fix tests relying on old website for now
21 lines
395 B
JavaScript
21 lines
395 B
JavaScript
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
class TestBehavior2 {
|
|
static init() {
|
|
return {
|
|
state: {},
|
|
};
|
|
}
|
|
|
|
static get id() {
|
|
return "TestBehavior2";
|
|
}
|
|
|
|
static isMatch() {
|
|
return window.location.origin === "https://old.webrecorder.net";
|
|
}
|
|
|
|
async *run(ctx) {
|
|
ctx.log("In Test Behavior 2!");
|
|
yield ctx.Lib.getState(ctx, "test-stat-2");
|
|
}
|
|
}
|