Skip to content

Commit 14cebe8

Browse files
committed
Made abbreviate resLatestCommitHash unconditional ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent 4c81fb9 commit 14cebe8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/bump/resources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@
133133
console.log(`${resName} already up-to-date!`) ; log.endedWithLineBreak = false
134134
continue // ...so skip resource
135135
}
136-
if (resURL.includes('?v=')) // full hash wasn't required for URL whitelisting
137-
resLatestCommitHash = resLatestCommitHash.substring(0, 7) // ...so abbr it
136+
resLatestCommitHash = resLatestCommitHash.substring(0, 7) // abbr it
138137
let updatedURL = resURL.replace(rePatterns.commitHash, `$1${resLatestCommitHash}`) // update hash
139138
if (!await isValidResource(updatedURL)) continue // to next resource
140139

0 commit comments

Comments
 (0)