Skip to content

Commit 72016ea

Browse files
authored
fix: compatibility banner blocked by ublock (@fehmer) (monkeytypegame#6502)
!nuf
1 parent 024e86e commit 72016ea

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

frontend/src/ts/ape/adapters/ts-rest-adapter.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,7 @@ function buildApi(timeout: number): (args: ApiFetcherArgs) => Promise<{
5959
backendCheck > COMPATIBILITY_CHECK
6060
? `Looks like the client and server versions are mismatched (backend is newer). Please <a onClick="location.reload(true)">refresh</a> the page.`
6161
: `Looks like our monkeys didn't deploy the new server version correctly. If this message persists contact support.`;
62-
Notifications.addBanner(
63-
message,
64-
1,
65-
undefined,
66-
false,
67-
undefined,
68-
true
69-
);
62+
Notifications.addPSA(message, 1, undefined, false, undefined, true);
7063
bannerShownThisSession = true;
7164
}
7265
}

0 commit comments

Comments
 (0)