File Editor
Directories:
.. (Back)
Files:
admin.min.js
campaign-selector.min.js
campaign-selector.min.js.LICENSE.txt
editor.min.js
elementor.min.js
elementor.min.js.LICENSE.txt
global.min.js
helper.min.js
metabox.min.js
om-format.min.js
om-format.min.js.LICENSE.txt
om-settings.min.js
plugininstall.min.js
trustpulse.min.js
wc-marketing.min.js
Create New File
Create
Edit File: global.min.js
window.OMAPI_Global=window.OMAPI_Global||{},function(n,t,i,o,e){"use strict";o.updateNotifications=function(){i.ajax({async:!0,url:o.url,headers:{"x-wp-nonce":o.nonce}}).done((function(t){if(!n.omWpApi){var i=t.length,e=o.$.menu.find(".toplevel_page_optin-monster-dashboard .wp-menu-name"),a=e.find(".om-notifications-count"),u=String(i),p="om-notifications-count update-plugins count-"+u;a.length?(a.attr("class",p),a.find(".plugin-count").text(u)):e.html('OptinMonster <span class="'+p+'"><span class="plugin-count">'+u+"</span></span>")}}))},o.init=function(){o.$={menu:i(t.getElementById("toplevel_page_optin-monster-dashboard"))},o.upgradeUrl&&(o.$.menu.find('.wp-submenu [href="admin.php?page=optin-monster-upgrade"]').attr("target","_blank").attr("rel","noopener").attr("href",o.upgradeUrl),o.$.menu.find(".om-menu-highlight").closest("li").addClass("om-submenu-highlight")),!n.omWpApi&&o.fetchNotifications&&o.updateNotifications()},i(o.init)}(window,document,jQuery,window.OMAPI_Global);
Save Changes
Rename File
Rename