Skip to content

Commit

Permalink
Fix: 自动化工具检测页面
Browse files Browse the repository at this point in the history
  • Loading branch information
TRHX committed Dec 6, 2023
1 parent 8c174b0 commit 7b85cc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions docs/.vuepress/public/js/detect_headless.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ async function testBrowser(test) {
}

// All testing items
const headlessTests = [
var headlessTests = [
{ name: "User Agent", id: "user-agent", correct: "不含 headless 关键字", target: "SE/PH/PL/PP", testFunction: testUserAgent },
{ name: "App Version", id: "app-version", correct: "不含 headless 关键字", target: "SE/PH/PL/PP", testFunction: testAppVersion },
{ name: "Languages", id: "languages", correct: "至少包含一种语言", target: "SE/PH/PL/PP", testFunction: testLanguages },
Expand All @@ -487,9 +487,9 @@ const headlessTests = [
{ name: "Browser features", id: "browser-features", correct: "HiDPI/Retina 屏幕为 true", target: "SE/PH/PL/PP", testFunction: testBrowserFeatures }, // abandoned
];

setTimeout(function() {
headlessTests.forEach(test => {
generateTableRow(test);
testBrowser(test).then(res => {});
}), 500
})
// setTimeout(function() {
// headlessTests.forEach(test => {
// generateTableRow(test);
// testBrowser(test).then(res => {});
// }), 500
// })
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ article: false
</tr>
</table>
<script type="application/javascript" src="/js/detect_headless.js"></script>
<!-- <script>
<script>
setTimeout(function() {
headlessTests.forEach(test => {
headlessTests.forEach(function(test) {
generateTableRow(test);
testBrowser(test).then(res => {});
testBrowser(test).then(function(res) {});
});
}, 500)
</script> -->
</script>
</body>
</html>

0 comments on commit 7b85cc4

Please sign in to comment.