Compare commits

...
2 Commits
Author SHA1 Message Date
TrèsAbhi 158141fdc7 Update index.ts 2025-10-06 20:58:45 -05:00
TrèsAbhi 1d319551e7 Update literals.ts 2025-10-06 18:24:48 -05:00
2 changed files with 2 additions and 4 deletions

No files matched your search

+1 -3
View File
@@ -1,7 +1,5 @@
import { assertSecret } from "@blitzkit/core";
const dev = assertSecret(import.meta.env.DEV);
export function literals(
string: string,
literals?: Record<string, string | number | undefined>
@@ -9,7 +7,7 @@ export function literals(
for (const key in literals) {
const mutated = string.replaceAll(`{${key}}`, `${literals[key]}`);
if (dev && mutated === string) {
if (import.meta.env.DEV && mutated === string) {
console.warn(`Could not find literal {${key}} in string "${string}"`);
}
+1 -1
View File
@@ -45,7 +45,7 @@ const methods = [
camouflageIcons,
boosterIcons,
tankIcons,
blitzkitTankIcons,
// blitzkitTankIcons,
// popularTanks,
glossary,
];