Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

How to detect home page in iphone and safari

I simply added a class called “home” in landing page then just check this class as

        if (document.querySelector('.home') !== null) {         
             // the conditions comes here
        }

You may also like...