How can I check if a page is in ?pagepreview=true mode?
I've branded the sharepoint ribbon and need to check if a page is in pagepreview to get the site branded correct (js / css). Is there a way to do this without checking the url with JS
window.loaction.href.indexOf("?pagepreview=true") > -1