What about https://github.com/etiennesegonzac/gaia/blob/855b1d9a2073385ce4a97e15ad821d1ca451a754/apps/system/js/screen_manager.js#L370 ?