Skip to content

Commit

Permalink
Instead of showing a JS Alert for rack bug enabling/disabling, reload…
Browse files Browse the repository at this point in the history
… the page
  • Loading branch information
noahd1 committed Sep 17, 2009
1 parent fa6cffa commit 8707f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/bug/public/__rack_bug__/bookmarklet.js
Expand Up @@ -203,12 +203,12 @@ document.rackBugBookmarklet = function() {
if (document.readCookie('rack_bug_password')) {
document.eraseCookie('rack_bug_password');
document.eraseCookie('rack_bug_enabled');
alert('Rack::Bug Disabled');
window.location.reload();
} else {
var password = prompt("Rack::Bug password:", "")
document.createCookie('rack_bug_password', document.SHA1('rack_bug:'+password));
document.createCookie('rack_bug_enabled', "1");
alert('Rack::Bug Enabled');
window.location.reload();
}
}

Expand Down

0 comments on commit 8707f06

Please sign in to comment.