1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
   | 
  @@ -15,8 +15,8 @@ var pjax = new Pjax({    scrollTo : !CONFIG.bookmark.enable  });
  -window.addEventListener('pjax:success', () => { -  document.querySelectorAll('script[pjax], script#page-configurations, #pjax script').forEach(element => { +window.addEventListener('pjax:success', function() { +  document.querySelectorAll('script[pjax], script#page-configurations, #pjax script').forEach(function(element) {      var code = element.text || element.textContent || element.innerHTML || '';      var parent = element.parentNode;      parent.removeChild(element);
 
 
  @@ -41,7 +41,7 @@          // load directly when there's no a scrollbar          window.addEventListener('load', loadComments, false);        } else { -        var disqus_scroll = () => { +        var disqus_scroll = function() {            // offsetTop may changes because of manually resizing browser window or lazy loading images.            var offsetTop = document.getElementById('comments').offsetTop - window.innerHeight;            var scrollTop = window.scrollY;
 
 
  @@ -3,12 +3,12 @@    <script src="{{ quicklink_uri }}"></script>    <script>      {%- if page.quicklink.delay %} -      window.addEventListener('load', () => { +      window.addEventListener('load', function() {      {%- endif %}        quicklink({          timeout: {{ page.quicklink.timeout }},          priority: {{ page.quicklink.priority }}, -        ignores: [uri => uri.includes('#'),uri => uri == '{{ url | replace('index.html', '') }}',{{ page.quicklink.ignores }}] +        ignores: [function(uri) { return uri.includes('#') }, function(uri) { return uri === '{{ url | replace('index.html', '') }}' }, {{ page.quicklink.ignores }}]        });      {%- if page.quicklink.delay %}        });
 
  |