File "google-json.js"
Full Path: /home/aiclgcwq/photonindustriespvt.com/wp-content/themes/woodmart/inc/integrations/elementor/assets/js/google-json.js
File size: 638 bytes
MIME-type: text/plain
Charset: utf-8
jQuery(window).on('elementor:init', function() {
var googleJson = elementor.modules.controls.BaseData.extend({
onReady: function() {
var val = this.ui.input.val();
try {
this.ui.textarea.val(atob(val));
} catch(e) {
this.ui.textarea.val(val);
}
},
onBeforeDestroy: function() {
this.setValue(btoa(this.ui.textarea.val()));
},
onBaseInputChange: function() {
this.setValue(btoa(this.ui.textarea.val()));
},
});
elementor.addControlView('wd_google_json', googleJson);
});