medic / atp

Android Test Pages - simple pages to test features of the medic-android wrapper app, its javascript APIs, platform inconsistencies and other fun. Short repo name for less typing on little phone keyboards.

Home Page:https://medic.github.io/atp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add handling for back button to all pages

alxndrsn opened this issue · comments

Because the android wrapper has a custom handling for the back key, we need to add a JS hook which fakes the Angular service. This should be imported from a .js file in the root of the project and included in the template. It's reasonable for this function to just call:

window.history.back()