Support chrome app usage

My version of PR #35
2.6.0