PluginProbe
Themify Builder / trunk
Themify Builder vtrunk
7.8.1 7.8.0 7.7.9 7.7.8 7.7.7 7.7.6 7.7.5 7.7.4 7.7.3 7.7.2 trunk 7.6.0 7.6.1 7.6.2 7.6.3 7.6.4 7.6.5 7.6.6 7.6.7 7.6.8 7.6.9 7.7.0 7.7.1
themify-builder / themify / js / admin / modules / install-updater.js

install-updater.js in Themify Builder trunk, at themify/js/admin/modules/install-updater.js

1 lines 485 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 let TF_Install_Updater;(t=>{"use strict";TF_Install_Updater=async a=>{const n=async()=>{const n=new FormData;n.set("action","themify_activate_plugin"),n.set("nonce",a),n.set("plugin","themify-updater");const e=await t.fetch(n,"html"),c=document.createElement("div");c.appendChild(e);for(let t=c.children,a=t.length-1;a>-1;--a)t[a].nodeName!==Node.TEXT_NODE&&t[a].remove();const i=JSON.parse(c.textContent);if(!i.success){throw i.data||i}};try{await n()}catch(t){await n()}}})(Themify);