Commit 035890f9 authored by Dylan Brookes's avatar Dylan Brookes Committed by Connor Davis

Fix adblock comment (#6859)

parent e6e4a152
...@@ -2,7 +2,7 @@ export async function generateBuildId (generate: () => string|null, fallback: () ...@@ -2,7 +2,7 @@ export async function generateBuildId (generate: () => string|null, fallback: ()
let buildId = await generate() let buildId = await generate()
// If there's no buildId defined we'll fall back // If there's no buildId defined we'll fall back
if (buildId === null) { if (buildId === null) {
// We also create a new buildId if it starts with `ad` to avoid false // We also create a new buildId if it contains the word `ad` to avoid false
// positives with ad blockers // positives with ad blockers
while (!buildId || /ad/i.test(buildId)) { while (!buildId || /ad/i.test(buildId)) {
buildId = fallback() buildId = fallback()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment