Skip to content

Commit 73191d6

Browse files
committed
Merge view section with index.js
1 parent e92891b commit 73191d6

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

assets/js/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ window.onload = async () => {
2626
});
2727
}
2828

29+
await fetch('https://api.python-bale-bot.ir/api/countView', {
30+
method: "POST",
31+
headers: {
32+
"Content-Type": "application/json",
33+
},
34+
body: JSON.stringify({
35+
websiteAddress: "python-bale-bot"
36+
})
37+
})
38+
2939
setTimeout(async () => {
3040
let versionName = await getStableVersion()
3141
// https://python-bale-bot.ir/changelog#v-2-4-8

assets/js/view.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ <h3 class="lang-description" id="more-info">برای دریافت مثال ها
103103
<p dir="ltr"><b>2022-Present</b></p>
104104
</footer>
105105
</div>
106-
<script src="assets/js/view.js"></script>
107106
<script src="assets/js/index.js"></script>
108107
<script src="assets/js/modal.js"></script>
109108
<script src="assets/js/copybutton.js"></script>

0 commit comments

Comments
 (0)