mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix twemoji path for special shared hostings
This commit is contained in:
@@ -36,7 +36,7 @@ function l(o) {
|
||||
const t = a(), e = i(t, o, "#fff"), n = i(t, o, "#000");
|
||||
return n === e && !n.startsWith("0,0,0,");
|
||||
}
|
||||
function f(o = "Twemoji Country Flags", t = '../assets/fonts/TwemojiCountryFlags/TwemojiCountryFlags.woff2') {
|
||||
function f(o = "Twemoji Country Flags", t = base_url +'assets/fonts/TwemojiCountryFlags/TwemojiCountryFlags.woff2') {
|
||||
if (typeof window < "u" && l("\u{1F60A}") && !l("\u{1F1E8}\u{1F1ED}")) {
|
||||
const e = document.createElement("style");
|
||||
return e.textContent = `@font-face {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
import {
|
||||
polyfillCountryFlagEmojis
|
||||
} from "../assets/js/country-flag-emoji-polyfill.js";
|
||||
polyfillCountryFlagEmojis();
|
||||
polyfillCountryFlagEmojis("Twemoji Country Flags", "<?php echo $websiteurl; ?>assets/fonts/TwemojiCountryFlags/TwemojiCountryFlags.woff2");
|
||||
</script>
|
||||
<?php
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user