hacks to make work in chrome app