Skip to content

Commit

Permalink
'Edit CSS' did not display stylesheet names correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispederick committed Apr 5, 2017
1 parent a97e57f commit 6711dc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configuration/firefox/configuration.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
common.prefix=chrome://web-developer/content
description=Adds a menu and a toolbar with various web developer tools.
version=1.2.12
version=1.2.13
10 changes: 8 additions & 2 deletions source/common/javascript/dashboard/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ WebDeveloper.Dashboard.formatURL = function(url)
// If the URL is set
if(url)
{
var lastSlashIndex = url.lastIndexOf("/");
var queryStringIndex = url.indexOf("?", lastSlashIndex);
var lastSlashIndex = 0;
var queryStringIndex = 0;

// Required to fix memory corruption (?) resulting in garbled URL in Firefox 52+
url = " " + url;

lastSlashIndex = url.lastIndexOf("/");
queryStringIndex = url.indexOf("?", lastSlashIndex);

// If there is no query string
if(queryStringIndex == -1)
Expand Down

0 comments on commit 6711dc8

Please sign in to comment.