mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
Firefox: popup size for menu-panel
This commit is contained in:
parent
71b0c22c9d
commit
f1e9bc363e
1 changed files with 7 additions and 1 deletions
|
@ -648,7 +648,13 @@ vAPI.toolbarButton.init = function() {
|
||||||
label: vAPI.app.name,
|
label: vAPI.app.name,
|
||||||
tooltiptext: vAPI.app.name,
|
tooltiptext: vAPI.app.name,
|
||||||
onViewShowing: function({target}) {
|
onViewShowing: function({target}) {
|
||||||
target.firstChild.setAttribute('src', vAPI.getURL('popup.html'));
|
var hash = CustomizableUI.getWidget(vAPI.toolbarButton.widgetId)
|
||||||
|
.areaType === CustomizableUI.TYPE_TOOLBAR ? '' : '#body';
|
||||||
|
|
||||||
|
target.firstChild.setAttribute(
|
||||||
|
'src',
|
||||||
|
vAPI.getURL('popup.html' + hash)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
onViewHiding: function({target}) {
|
onViewHiding: function({target}) {
|
||||||
target.firstChild.setAttribute('src', 'about:blank');
|
target.firstChild.setAttribute('src', 'about:blank');
|
||||||
|
|
Loading…
Reference in a new issue