mirror of
https://github.com/ShinkoNet/Wplace-Overlay-Pro.git
synced 2026-03-29 05:58:46 +00:00
Update tile URLs from 2026-02-27 update
This fixes the overlay not rendering since the aforementioned update.
This commit is contained in:
parent
7c02beed51
commit
30eea910f8
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ export function extractPixelCoords(pixelUrl: string) {
|
|||
export function matchTileUrl(urlStr: string) {
|
||||
try {
|
||||
const u = new URL(urlStr, location.href);
|
||||
if (u.hostname !== 'backend.wplace.live' || !u.pathname.startsWith('/files/')) return null;
|
||||
if (u.hostname !== 'backend.wplace.live' || !u.pathname.startsWith('/tile/')) return null;
|
||||
const m = u.pathname.match(/\/(\d+)\/(\d+)\.png$/i);
|
||||
if (!m) return null;
|
||||
return { chunk1: parseInt(m[1], 10), chunk2: parseInt(m[2], 10) };
|
||||
|
|
|
|||
Loading…
Reference in a new issue