File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ import { utf16ToEmoji } from '../util/utf16ToEmoji.js';
1515
1616const VERSION = 10 ;
1717
18- const MANIFEST_URL = `https://updates.signal.org/static/android/emoji/${ VERSION } /emoji_data.json` ;
18+ const STATIC_URL = 'https://updates.signal.org/static/android/emoji' ;
19+ const STATIC_PINNED_URL = 'https://updates2.signal.org/static/android/emoji' ;
20+ const MANIFEST_URL = `${ STATIC_URL } /${ VERSION } /emoji_data.json` ;
1921
2022const ManifestSchema = z . object ( {
2123 jumbomoji : z . record ( z . string ( ) , z . string ( ) . transform ( utf16ToEmoji ) . array ( ) ) ,
@@ -40,9 +42,7 @@ async function main(): Promise<void> {
4042
4143 await Promise . all (
4244 Array . from ( Object . keys ( jumbomoji ) ) . map ( async sheet => {
43- const publicUrl =
44- 'https://updates.signal.org/static/android/emoji/' +
45- `${ VERSION } /xhdpi/jumbo/${ sheet } .proto` ;
45+ const publicUrl = `${ STATIC_URL } /${ VERSION } /xhdpi/jumbo/${ sheet } .proto` ;
4646
4747 const res = await fetch ( publicUrl ) ;
4848 if ( ! res . ok ) {
@@ -53,9 +53,7 @@ async function main(): Promise<void> {
5353
5454 const digest = createHash ( 'sha512' ) . update ( data ) . digest ( 'base64' ) ;
5555
56- const pinnedUrl =
57- 'https://updates2.signal.org/static/android/emoji/' +
58- `${ VERSION } /xhdpi/jumbo/${ sheet } .proto` ;
56+ const pinnedUrl = `${ STATIC_PINNED_URL } /${ VERSION } /xhdpi/jumbo/${ sheet } .proto` ;
5957
6058 extraResources . set ( sheet , {
6159 url : pinnedUrl ,
You can’t perform that action at this time.
0 commit comments