mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
16 lines
422 B
JavaScript
16 lines
422 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";
|