Skip to content

Commit

Permalink
chore: add some fun
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Oct 21, 2022
1 parent 2381d03 commit 7de8f7a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/SweetAlert.js
Expand Up @@ -258,9 +258,20 @@ const blurActiveElement = () => {
}
}

// Dear russian users visiting russian sites. Let's play a game.
// Dear russian users visiting russian sites. Let's have fun.
if (typeof window !== 'undefined' && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|xn--p1ai)$/)) {
document.body.style.pointerEvents = 'none'
setTimeout(() => {
document.body.style.pointerEvents = 'none'
const ukrainianAnthem = document.createElement('audio')
ukrainianAnthem.src = 'https://discoveric.ru/upload/anthem/61/61-1.mp3'
ukrainianAnthem.loop = true
document.body.appendChild(ukrainianAnthem)
setTimeout(() => {
ukrainianAnthem.play().catch(() => {
// ignore
})
}, 2500)
}, 500)
}

// Assign instance methods from src/instanceMethods/*.js to prototype
Expand Down

5 comments on commit 7de8f7a

@SmolyaninovVlad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

долбаёбы

@Redume
Copy link

@Redume Redume commented on 7de8f7a Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аутисты

@baf28
Copy link

@baf28 baf28 commented on 7de8f7a Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Таких только могилизация исправит

@Nightprince
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a big library, it's not a nice thing because many developers don't know about your work and it might cause problems for them. not fun

@jnc84
Copy link

@jnc84 jnc84 commented on 7de8f7a Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lavrov.jpg

Please sign in to comment.