Make Giphy API key configurable via WordPress option: reads from beep_giphy_key option, sets default on init, passes to BeepConfig.giphyKey for frontend JS
This commit is contained in:
+1
-1
@@ -720,7 +720,7 @@
|
||||
}
|
||||
|
||||
/* ---------- GIF Picker (Giphy) ---------- */
|
||||
var GIPHY_API_KEY = 'xuxYxuIvzPqw5tPB4laa7sQO8dFtSlNS';
|
||||
var GIPHY_API_KEY = (window.BeepConfig && window.BeepConfig.giphyKey) || '';
|
||||
|
||||
function openGifPicker(compose) {
|
||||
var modal = document.querySelector('[data-beep-gif-modal]');
|
||||
|
||||
Reference in New Issue
Block a user