mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Apply eslint --fix and fix indentation
This commit is contained in:

committed by
Théo (Lattay) Cavignac

parent
4123c069e2
commit
6f84b5dfc8
@ -1,20 +1,19 @@
|
||||
|
||||
/////=include libraries/bowser.js
|
||||
|
||||
function closeCompatibilityWarning () {
|
||||
document.getElementById('compatibility-warning').style.visibility = 'hidden';
|
||||
document.getElementById('compatibility-warning').style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
console.log('checking compatibility')
|
||||
console.log('checking compatibility');
|
||||
|
||||
//check browser/version
|
||||
if ( (bowser.msie && bowser.version < 11) ||
|
||||
(bowser.firefox && bowser.version < 28) ||
|
||||
(bowser.chrome && bowser.version < 29) ||
|
||||
(bowser.msedge && bowser.version < 12) ||
|
||||
(bowser.safari && bowser.version < 9) ||
|
||||
(bowser.opera && bowser.version < 17) )
|
||||
//show warning
|
||||
document.getElementById('compatibility-warning').style.visibility = 'visible';
|
||||
if ((bowser.msie && bowser.version < 11) ||
|
||||
(bowser.firefox && bowser.version < 28) ||
|
||||
(bowser.chrome && bowser.version < 29) ||
|
||||
(bowser.msedge && bowser.version < 12) ||
|
||||
(bowser.safari && bowser.version < 9) ||
|
||||
(bowser.opera && bowser.version < 17) )
|
||||
//show warning
|
||||
document.getElementById('compatibility-warning').style.visibility = 'visible';
|
||||
|
||||
else alert(bowser.name+' '+bowser.version+' is fine!')
|
||||
else alert(bowser.name+' '+bowser.version+' is fine!');
|
||||
|
Reference in New Issue
Block a user