Skip to content

Commit

Permalink
some booba
Browse files Browse the repository at this point in the history
  • Loading branch information
p0loskun committed Jan 31, 2024
1 parent 677da72 commit ceeb3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function handleAnchorClick(event) {
}
}

function handleIPButtonClick() {
async function handleIPButtonClick() {
try {
if (typeof navigator.clipboard === 'undefined') {
const textarea = document.createElement('textarea')
Expand All @@ -243,7 +243,7 @@ function handleIPButtonClick() {
document.execCommand('copy')
document.body.removeChild(textarea)
} else {
navigator.clipboard.writeText(ip)
await navigator.clipboard.writeText(ip)
}

showToast('Айпи скопирован!', ToastType.SUCCESS)
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<meta property="og:description" content="WhoMine - это приватный RP-Survival сервер, где ты можешь стать кем угодно и воплотить свои фантазии в захватывающем игровом мире">
<meta property="og:image" content="assets/img/whomine290x290.webp">
<link rel="icon" type="image/x-icon" href="assets/favicon.ico">
<script type="module" src="assets/main.js"></script>
<link rel="stylesheet" href="assets/main.css">
</head>
<body>
Expand Down Expand Up @@ -230,5 +229,6 @@ <h1>Наш Дискорд</h1>
</div>
<p class="disclaimer">Not an official Minecraft product<br>We are in no way affiliated with or endorsed by <b>Mojang Synergies AB</b>, <b>Microsoft Corporation</b> or other rights-holders</p>
</footer>
<script async type="module" src="assets/main.js" crossorigin="anonymous"></script>
</body>
</html>

0 comments on commit ceeb3bf

Please sign in to comment.