Add parse location utility
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import * as URLParse from 'url-parse';
|
||||
import { StateGrabber } from './StateGrabber';
|
||||
import { grabActiveVillageId, grabResourcesPerformance } from '../Page/VillageBlock';
|
||||
import { VillageState } from './VillageState';
|
||||
import { parseLocation } from '../utils';
|
||||
|
||||
export class ResourcePerformanceGrabber extends StateGrabber {
|
||||
grab(): void {
|
||||
const p = new URLParse(window.location.href, true);
|
||||
const p = parseLocation();
|
||||
if (p.pathname !== '/dorf1.php') {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user