mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 17:46:39 -04:00
clean up styles & extend old browser support via autoprefixer/eslint 🧓🏻
and stop encoding emojis like a caveman
This commit is contained in:
@ -65,7 +65,7 @@
|
||||
|
||||
try {
|
||||
return emptyUUID.replace(uuidRegex, function (c) {
|
||||
return (c ^ (cryptoObject.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16);
|
||||
return (c ^ (cryptoObject.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16); // eslint-disable-line compat/compat
|
||||
});
|
||||
} catch (error) {
|
||||
return emptyUUID.replace(uuidRegex, function (c) {
|
||||
@ -135,7 +135,7 @@
|
||||
// This code could error on not having resolvedOptions in the Android Webview, that's why we use try...catch
|
||||
var timezone;
|
||||
try {
|
||||
timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; // eslint-disable-line compat/compat
|
||||
} catch (e) {
|
||||
/* Do nothing */
|
||||
}
|
||||
@ -294,7 +294,7 @@
|
||||
}
|
||||
|
||||
// If a user does refresh we need to delete the referrer because otherwise it count double
|
||||
var perf = window.performance;
|
||||
var perf = window.performance; // eslint-disable-line compat/compat
|
||||
var navigation = "navigation";
|
||||
|
||||
// Check if back, forward or reload buttons are being used in modern browsers
|
||||
|
@ -61,7 +61,7 @@
|
||||
// don't freak out if page happens not to have a toggle
|
||||
if (toggle) {
|
||||
// toggle re-appears now that we know user has JS enabled
|
||||
toggle.style.visibility = "visible";
|
||||
toggle.style.display = "block";
|
||||
|
||||
// handle toggle click
|
||||
toggle.addEventListener(
|
||||
|
Reference in New Issue
Block a user