Skip to content

Commit 7828880

Browse files
committed
refactor: update GIF configuration
1 parent ca9b4be commit 7828880

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

js/app/component/gif.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ export const gif = (() => {
202202
*/
203203
const get = (path, params) => {
204204
params = {
205-
key: conf.get('key'),
206-
media_filter: conf.get('media_filter'),
207-
client_key: conf.get('client_key'),
205+
key: conf.get('tenor_key'),
206+
media_filter: 'tinygif',
207+
client_key: 'undangan_app',
208208
country: conf.get('country'),
209209
locale: conf.get('locale'),
210210
...(params ?? {}),
@@ -477,10 +477,6 @@ export const gif = (() => {
477477
const lang = document.documentElement.lang.split('-')[0].toLowerCase();
478478
conf.set('country', countryMapping[lang] ?? 'US');
479479
conf.set('locale', `${lang}_${conf.get('country')}`);
480-
481-
conf.set('key', 'AIzaSyB-Z10TLX7MbkcMT5S_YA1iEqCmGzutV7s');
482-
conf.set('media_filter', 'tinygif');
483-
conf.set('client_key', 'undangan_app');
484480
};
485481

486482
return {

0 commit comments

Comments
 (0)