Skip to content

Commit 5684a4d

Browse files
committed
Fix embedded features and icon badging in Firefox
1 parent 6cdc9ad commit 5684a4d

File tree

9 files changed

+24
-7
lines changed

9 files changed

+24
-7
lines changed

chrome/config/config.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=3.0
1+
version=3.0.1

common/js/common/storage.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,12 @@ WebDeveloper.Storage.toggleFeatureOnTab = function(feature, tab, callback)
180180
newFeaturesOnTab = feature;
181181
}
182182

183-
WebDeveloper.Storage.setItem(featureTabId, newFeaturesOnTab, callback);
184-
WebDeveloper.Storage.updateBadgeText(featureTabId);
183+
WebDeveloper.Storage.setItem(featureTabId, newFeaturesOnTab, function() { WebDeveloper.Storage.updateBadgeText(featureTabId, callback); });
185184
});
186185
};
187186

188187
// Updates the badge text for a tab
189-
WebDeveloper.Storage.updateBadgeText = function(featureTabId)
188+
WebDeveloper.Storage.updateBadgeText = function(featureTabId, callback)
190189
{
191190
var badgeText = "";
192191
var badgeTooltip = "@name@";
@@ -211,6 +210,12 @@ WebDeveloper.Storage.updateBadgeText = function(featureTabId)
211210

212211
chrome.action.setBadgeText({ text: badgeText, tabId: featureTabId });
213212
chrome.action.setTitle({ title: badgeTooltip, tabId: featureTabId });
213+
214+
// If a callback is set
215+
if(callback)
216+
{
217+
callback();
218+
}
214219
});
215220
};
216221

common/js/embedded/dashboard/element-information.js

+3
Original file line numberDiff line numberDiff line change
@@ -954,3 +954,6 @@ WebDeveloper.ElementInformation.selectParentElement = function(eventTarget)
954954
}
955955
}
956956
};
957+
958+
// Fixes a non-structured-clonable data error in Firefox
959+
""; // eslint-disable-line no-unused-expressions

common/js/embedded/toolbar/color-picker.js

+3
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,6 @@ WebDeveloper.ColorPicker.setColor = function(color, type)
233233

234234
WebDeveloper.ColorPicker.toolbarDocument.getElementById("web-developer-color-picker-" + type + "-hex").textContent = color;
235235
};
236+
237+
// Fixes a non-structured-clonable data error in Firefox
238+
""; // eslint-disable-line no-unused-expressions

common/js/embedded/toolbar/line-guides.js

+3
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,6 @@ WebDeveloper.LineGuides.updateLineGuideInformation = function(lineGuide)
487487
WebDeveloper.LineGuides.updateInformation(position, previousPosition, nextPosition);
488488
}
489489
};
490+
491+
// Fixes a non-structured-clonable data error in Firefox
492+
""; // eslint-disable-line no-unused-expressions

common/js/embedded/toolbar/ruler.js

+3
Original file line numberDiff line numberDiff line change
@@ -561,3 +561,6 @@ WebDeveloper.Ruler.updateWidth = function()
561561
WebDeveloper.Ruler.updateInformation();
562562
}
563563
};
564+
565+
// Fixes a non-structured-clonable data error in Firefox
566+
""; // eslint-disable-line no-unused-expressions

edge/config/config.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=3.0
1+
version=3.0.1

firefox/config/config.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=3.0
1+
version=3.0.1

opera/config/config.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=3.0
1+
version=3.0.1

0 commit comments

Comments
 (0)