Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = window.location.href;
- var stable = url.indexOf("vtexcommercestable");
- var local = url.indexOf("vtexlocal");
- var beta = url.indexOf("vtexcommercebeta");
- stable = parseInt(stable);
- local = parseInt(local);
- beta = parseInt(beta);
- var develop = false;
- if((stable > -1) || (local > -1) || (beta > -1)){
- $('html').addClass("develop");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement