hints: open links in async mode
authorVirgil Dupras <hsoft@hardcoded.net>
Tue, 9 May 2017 00:10:35 +0000 (20:10 -0400)
committerVirgil Dupras <hsoft@hardcoded.net>
Tue, 9 May 2017 00:12:52 +0000 (20:12 -0400)
commit798e2e1080e208f89c6bf49ad202ba4490dcb03d
tree5892485bea5bffabcc4cb1e3a2f3acb566687fb3
parent904f8267fce2037a87025d0dd06007daf5b4c208
hints: open links in async mode

When firing hints, open them (either by simulating a click or through
`window.open()`) in async mode with `window.setTimeout()`. If we don't
do that, the `EvalJS` dbus call will itself timeout and we'll end up
in an inconsistent state, that is, not back to Normal mode.

ref #349
src/scripts/hints.js