pboling/rack-insight — pull request #8 by oggy (2012-09-13 22:31:25+00:00)
Title: Call function to toggle bookmarket.

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. 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.