vendredi 23 décembre 2016

MacOS HelpViewer navigation buttons doesn't work for web SPA content

Recently we had to migrate embedded help for Mac product to web and have referenced it from Mac HelpViewer. As far as I know MacOs HelpViewer is a custom made webkit based applilcation that is used to display product help, which has to be presented in a specifis folder structure. HelpViewer's nav and menu buttons aren't similiar to any browsers buttons, and for the rest browsers our web help works perfectly fine in SPA mode with

window.history.pushState

But once this SPA behaviour is applied to HelpViewer navigations buttons don't react (they are disabled) to changing url or adding state to window.history collection. MacOS nativa applications also have web based help, e.g: calendar app. This help is based on Ember.js and has some SPA behaviour also, but this one trigger HelpViewer's buttons to react (they become enabled) and work once clicked.

The problem I try to solve is how to trigger HelpViewer to react on changing url or window.history. Maybe ember.js does some stuff except for adding




Aucun commentaire:

Enregistrer un commentaire