Duplicate Javascript array?
-
Looking our my page source code, I noticed that it looks as if Simple Calendar is posting the same Javascript array twice on the page. Is there a reason for this? If you look at the code, there are two instances of “simcal_default_calendar” on the page right next to each other. Here is the code from our production site:
<script type=’text/javascript’ src=’https://www.servername.com/wp-content/plugins/google-calendar-events/assets/js/vendor/moment-timezone-with-data.min.js?ver=3.1.14′></script>
<script type=’text/javascript’>
/* <![CDATA[ */
var simcal_default_calendar = {“ajax_url”:”\/wp-admin\/admin-ajax.php”,”nonce”:”7ea96ae434″,”locale”:”en_US”,”text_dir”:”ltr”,”months”:{“full”:[“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”],”short”:[“Jan”,”Feb”,”Mar”,”Apr”,”May”,”Jun”,”Jul”,”Aug”,”Sep”,”Oct”,”Nov”,”Dec”]},”days”:{“full”:[“Sunday”,”Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”,”Saturday”],”short”:[“Sun”,”Mon”,”Tue”,”Wed”,”Thu”,”Fri”,”Sat”]},”meridiem”:{“AM”:”AM”,”am”:”am”,”PM”:”PM”,”pm”:”pm”}};
var simcal_default_calendar = {“ajax_url”:”\/wp-admin\/admin-ajax.php”,”nonce”:”7ea96ae434″,”locale”:”en_US”,”text_dir”:”ltr”,”months”:{“full”:[“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”],”short”:[“Jan”,”Feb”,”Mar”,”Apr”,”May”,”Jun”,”Jul”,”Aug”,”Sep”,”Oct”,”Nov”,”Dec”]},”days”:{“full”:[“Sunday”,”Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”,”Saturday”],”short”:[“Sun”,”Mon”,”Tue”,”Wed”,”Thu”,”Fri”,”Sat”]},”meridiem”:{“AM”:”AM”,”am”:”am”,”PM”:”PM”,”pm”:”pm”}};
/* ]]> */
</script>
<script type=’text/javascript’ src=’https://www.servername.com/wp-content/plugins/google-calendar-events/assets/js/default-calendar.min.js?ver=3.1.14′></script>(Also, I tried to send this though your website’s support page since we have a license, but Wordfence is blocking the send action. Might want to take a look at that.)
The topic ‘Duplicate Javascript array?’ is closed to new replies.