Replies: 0
Every time I load the customizer for my blog; emergencyactionplanning.com I get a debug notice.
It tells me to put the details here.
if(‘undefined’==typeof wpcom){wpcom={};}
if(‘undefined’==typeof wpcom.events){wpcom.events=_.extend({},Backbone.Events);}
(function($){var wpNotesArgs=window.wpNotesArgs||{},cacheBuster=wpNotesArgs.cacheBuster||(function(){var today=new Date();return today.getFullYear()+(‘0’+(1+today.getMonth())).slice(-2)+(‘0’+today.getDate()).slice(-2);})(),iframeUrl=wpNotesArgs.iframeUrl||’https://widgets.wp.com/notes/’,iframeAppend=wpNotesArgs.iframeAppend||”,iframeScroll=wpNotesArgs.iframeScroll||”no”,wideScreen=wpNotesArgs.wide||false,iframePanelId,iframeFrameId;$(function(){if(($(‘#wpnt-notes-panel’).length==0&&$(‘#wpnt-notes-panel2’).length)&&(‘undefined’!=typeof wpNotesIsJetpackClientV2&&wpNotesIsJetpackClientV2)){iframeUrl=’https://widgets.wp.com/notifications/’;iframeAppend=’2′;iframeScroll=’yes’;wideScreen=true;}
iframePanelId=”wpnt-notes-panel”+iframeAppend;iframeFrameId=”wpnt-notes-iframe”+iframeAppend;new wpntView();});var wpntView=Backbone.View.extend({el:’#wp-admin-bar-notes’,hasUnseen:null,initialLoad:true,count:null,iframe:null,iframeWindow:null,messageQ:[],iframeSpinnerShown:false,isJetpack:false,linkAccountsURL:false,currentMasterbarActive:false,initialize:function(){var t=this;var matches=navigator.appVersion.match(/MSIE (\d+)/);if(matches&&parseInt(matches[1],10)<8){var $panel=t.$(‘#’+iframePanelId);var $menuItem=t.$(‘.ab-empty-item’);if(!$panel.length||!$menuItem.length){return;}
var offset=t.$el.offset();t.$(‘.ab-item’).removeClass(‘ab-item’);t.$(‘#wpnt-notes-unread-count’).html(‘?’);$panel.html(‘ \
<div class=”wpnt-notes-panel-header”><p>Notifications are not supported in this browser!</p> </div> \
\
<p class=”wpnt-ie-note”> \
Please upgrade your browser to keep using notifications. \
</p>’).addClass(‘browse-happy’);t.$el.on(‘mouseenter’,function(e){clearTimeout(t.fadeOutTimeout);if($panel.is(‘:visible:animated’)){$panel.stop().css(‘opacity’,”);}
$menuItem.css({‘background-color’:’#eee’});$panel.show();});t.$el.on(‘mouseleave’,function(){t.fadeOutTimeout=setTimeout(function(){clearTimeout(t.fadeOutTimeout);if($panel.is(‘:animated’)){return;}
$panel.fadeOut(250,function(){$menuItem.css({‘background-color’:’transparent’});});},350);});return;}
if(‘function’!=typeof $.fn.spin){$.fn.spin=function(x){};}
this.isRtl=$(‘#wpadminbar’).hasClass(‘rtl’);this.count=$(‘#wpnt-notes-unread-count’);this.panel=$(‘#’+iframePanelId);this.hasUnseen=this.count.hasClass(‘wpn-unread’);if(‘undefined’!=typeof wpNotesIsJetpackClient&&wpNotesIsJetpackClient)
t.isJetpack=true;if(t.isJetpack&&’undefined’!=typeof wpNotesLinkAccountsURL)
t.linkAccountsURL=wpNotesLinkAccountsURL;this.$el.children(‘.ab-item’).on(‘click touchstart’,function(e){e.preventDefault();t.togglePanel();return false;});this.preventDefault=function(e){if(e)e.preventDefault();return false;};if(iframeAppend==’2′){this.panel.mouseenter(function(){document.body.addEventListener(‘mousewheel’,t.preventDefault);});this.panel.mouseleave(function(){document.body.removeEventListener(‘mousewheel’,t.preventDefault);});if(typeof document.hidden!==’undefined’){document.addEventListener(‘visibilitychange’,function(){t.postMessage({action:”toggleVisibility”,hidden:document.hidden});});}}
$(document).bind(“mousedown focus”,function(e){var $clicked;if(!t.showingPanel)
return true;$clicked=$(e.target);if($clicked.is(document))
return true;if($clicked.closest(‘#wp-admin-bar-notes’).length)
return true;t.hidePanel();return false;});$(document).on(‘keydown.notes’,function(e){var keyCode=wpNotesCommon.getKeycode(e);if(!keyCode)
return;if((keyCode==27))
t.hidePanel();if((keyCode==78))
t.togglePanel();if(this.iframeWindow===null)
return;if(t.showingPanel&&((keyCode==74)||(keyCode==40))){t.postMessage({action:”selectNextNote”});return false;}
if(t.showingPanel&&((keyCode==75)||(keyCode==38))){t.postMessage({action:”selectPrevNote”});return false;}
if(t.showingPanel&&((keyCode==82)||(keyCode==65)||(keyCode==83)||(keyCode==84))){t.postMessage({action:”keyEvent”,keyCode:keyCode});return false;}});wpcom.events.on(‘notes:togglePanel’,function(){t.togglePanel();});if(t.isJetpack)
t.loadIframe();else{setTimeout(function(){t.loadIframe();},3000);}
if(t.count.hasClass(‘wpn-unread’))
wpNotesCommon.bumpStat(‘notes-menu-impressions’,’non-zero’);else
wpNotesCommon.bumpStat(‘notes-menu-impressions’,’zero’);$(window).on(‘message’,function(event){if(!event.data&&event.originalEvent.data){event=event.originalEvent;}
if(event.origin!=’https://widgets.wp.com’){return;}
try{var data=(‘string’==typeof event.data)?JSON.parse(event.data):event.data;if(data.type!=’notesIframeMessage’){return;}
t.handleEvent(data);}catch(e){}});},handleEvent:function(event){var inNewdash=(‘undefined’!==typeof wpcomNewdash&&’undefined’!==typeof wpcomNewdash.router&&’undefined’!==wpcomNewdash.router.setRoute);if(!event||!event.action){return;}
switch(event.action){case”togglePanel”:this.togglePanel();break;case”render”:this.render(event.num_new,event.latest_type);break;case”renderAllSeen”:this.renderAllSeen();break;case”iFrameReady”:this.iFrameReady(event);break;case”goToNotesPage”:if(inNewdash){wpcomNewdash.router.setRoute(‘/notifications’);}else{window.location.href=’//wordpress.com/me/notifications/’;}
break;case”widescreen”:var iframe=$(‘#’+iframeFrameId);if(event.widescreen&&!iframe.hasClass(‘widescreen’)){iframe.addClass(‘widescreen’);}else if(!event.widescreen&&iframe.hasClass(‘widescreen’)){iframe.removeClass(‘widescreen’);}
break;}},render:function(num_new,latest_type){var t=this,flash=false;if((false===this.hasUnseen)&&(0===num_new))