mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-10 11:16:10 +01:00
Compare commits
2
Commits
0552ac790e
...
158141fdc7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
158141fdc7 | ||
|
|
1d319551e7 |
No files matched your search
@@ -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}"`);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ const methods = [
|
||||
camouflageIcons,
|
||||
boosterIcons,
|
||||
tankIcons,
|
||||
blitzkitTankIcons,
|
||||
// blitzkitTankIcons,
|
||||
// popularTanks,
|
||||
glossary,
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user