mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
14 lines
420 B
JavaScript
14 lines
420 B
JavaScript
function closeCompatibilityWarning() {
|
|
document.getElementById("compatibility-warning").style.visibility = "hidden";
|
|
}
|
|
|
|
//check browser/version
|
|
if (
|
|
(bowser.firefox && bowser.version >= 28) ||
|
|
(bowser.chrome && bowser.version >= 29) ||
|
|
(!bowser.mobile && !bowser.tablet)
|
|
)
|
|
console.log("compatibility check passed");
|
|
//show warning
|
|
else document.getElementById("compatibility-warning").style.visibility = "visible";
|