wuhu-torn-helper/src/class/WuhuBase.ts
2022-09-21 18:47:52 +08:00

23 lines
658 B
TypeScript

import IGlobal from "../interface/IGlobal";
import IWHSettings from "../interface/IWHSettings";
import Log from "./Log";
export default class WuhuBase {
static glob: IGlobal = null;
static getLocal(): IWHSettings {
return JSON.parse(localStorage.getItem('wh_trans_settings'));
}
static conditionInterrupt() {
if (
document.title.toLowerCase().includes('just a moment') ||
document.querySelector('#skip-to-content').innerText.toLowerCase().includes('please validate')
)
throw '芜湖';
}
constructor() {
Log.info('创建对象:' + this.constructor.name)
}
}