Moved minimap rendering to offscreen canvas

This commit is contained in:
tk338g
2021-02-19 21:07:09 +03:00
parent 3b0aff0ac6
commit 6a8680f500
15 changed files with 28144 additions and 175 deletions

View File

@@ -372,6 +372,9 @@ export const getVersion = () => {
// Adapted from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/emoji.js
export const supportsEmoji = () => {
if (typeof document === "undefined") {
return;
}
const canvas = document.createElement("canvas");
const ctx = canvas.getContext("2d");
if (!ctx) {