diff --git a/index.html b/index.html index b93b1eef3..4cccb40c8 100644 --- a/index.html +++ b/index.html @@ -66,9 +66,10 @@ + impress.js | presentation tool based on the power of CSS3 transforms and transitions in modern browsers | by Bartek Szopka @bartaz - + diff --git a/js/impress.js b/js/impress.js index a6be86b81..8698363df 100644 --- a/js/impress.js +++ b/js/impress.js @@ -98,7 +98,9 @@ var ua = navigator.userAgent.toLowerCase(); var impressSupported = ( pfx("perspective") != null ) && - ( ua.search(/(iphone)|(ipod)|(ipad)|(android)/) == -1 ); + ( document.body.classList ) && + ( document.body.dataset ) && + ( ua.search(/(iphone)|(ipod)|(android)/) == -1 ); var roots = {};