brynary/rack-bug — pull request #54 by oggy (2012-09-13 22:29:24+00:00)
Title: Fix Bookmarklet

So I tried your app mentioned in pull request 6, as well as a fresh, minimal Rails 3.2.8 app which I can provide if necessary, and in both cases the bookmarklet (at /__insight__/bookmarklet.html) does not give me the password prompt nor toggle the state of the toolbar. Tried with Chrome 23.0.1262.0 dev and Firefox 13.0.1.

In brynary's rack-bug, I can see that this function is called [at the end of the bookmarklet js](https://github.com/brynary/rack-bug/blob/master/lib/rack/bug/public/__rack_bug__/bookmarklet.js#L217). The corresponding file in rack-insight does not have this call, and I did not see where this call could have been moved to. So here I move it to the bookmarklet link itself, which fixes it for me.