Skip to content

Commit 5ebd009

Browse files
authored
Use var for compatibility
1 parent a94db33 commit 5ebd009

File tree

1 file changed

+2
-2
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+2
-2
lines changed

mkdocs_git_revision_date_localized_plugin/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def on_post_page(self, output_content, **kwargs):
7777
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.0-beta.2/timeago.min.js"></script>
7878
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.0-beta.2/timeago.locales.min.js"></script>
7979
<script>
80-
const nodes = document.querySelectorAll('.timeago');
81-
const locale = nodes[0].getAttribute('locale');
80+
var nodes = document.querySelectorAll('.timeago');
81+
var locale = nodes[0].getAttribute('locale');
8282
timeago.render(nodes, locale);
8383
</script>
8484
"""

0 commit comments

Comments
 (0)