add boolean for web or desktop