From c2fbef300d133fa9451419fa8cd22ba4a52977ed Mon Sep 17 00:00:00 2001 From: luatos_bot Date: Mon, 6 Nov 2023 03:36:30 +0000 Subject: [PATCH] ci auto translate docs --- docs/_static/js/baidu.js | 4 ++-- translated-docs/_static/js/baidu.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_static/js/baidu.js b/docs/_static/js/baidu.js index 3dd46a7b3..a2776590c 100644 --- a/docs/_static/js/baidu.js +++ b/docs/_static/js/baidu.js @@ -6,9 +6,9 @@ if (location.href.indexOf("https://wiki.luatos.org") == 0 ) { //Google Analytics (function() { - var g_js = document.createElement("g_js"); + var g_js = document.createElement("script"); g_js.src = "https://www.googletagmanager.com/gtag/js?id=G-JLYVYP605V"; - var s = document.getElementsByTagName("g_js")[0]; + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g_js, s); })(); window.dataLayer = window.dataLayer || []; diff --git a/translated-docs/_static/js/baidu.js b/translated-docs/_static/js/baidu.js index 3dd46a7b3..a2776590c 100644 --- a/translated-docs/_static/js/baidu.js +++ b/translated-docs/_static/js/baidu.js @@ -6,9 +6,9 @@ if (location.href.indexOf("https://wiki.luatos.org") == 0 ) { //Google Analytics (function() { - var g_js = document.createElement("g_js"); + var g_js = document.createElement("script"); g_js.src = "https://www.googletagmanager.com/gtag/js?id=G-JLYVYP605V"; - var s = document.getElementsByTagName("g_js")[0]; + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g_js, s); })(); window.dataLayer = window.dataLayer || [];