Update library
This commit is contained in:
parent
4ad7e7d099
commit
0ed972459b
@ -25,13 +25,13 @@
|
|||||||
(function() {
|
(function() {
|
||||||
if (!('BookmarkPropertiesPanel' in window) ||
|
if (!('BookmarkPropertiesPanel' in window) ||
|
||||||
!BookmarkPropertiesPanel._determineItemInfo ||
|
!BookmarkPropertiesPanel._determineItemInfo ||
|
||||||
BookmarkPropertiesPanel.__treestyletab__determineItemInfo)
|
BookmarkPropertiesPanel.__bookmarkMultipleTabs__determineItemInfo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Defined at http://mxr.mozilla.org/mozilla-central/source/browser/components/places/content/bookmarkProperties.js#73
|
// Defined at http://mxr.mozilla.org/mozilla-central/source/browser/components/places/content/bookmarkProperties.js#73
|
||||||
const ACTION_ADD = 1;
|
const ACTION_ADD = 1;
|
||||||
|
|
||||||
BookmarkPropertiesPanel.__treestyletab__determineItemInfo = BookmarkPropertiesPanel._determineItemInfo;
|
BookmarkPropertiesPanel.__bookmarkMultipleTabs__determineItemInfo = BookmarkPropertiesPanel._determineItemInfo;
|
||||||
BookmarkPropertiesPanel._determineItemInfo = function(...aArgs) {
|
BookmarkPropertiesPanel._determineItemInfo = function(...aArgs) {
|
||||||
var folderNameOverride = null;
|
var folderNameOverride = null;
|
||||||
try {
|
try {
|
||||||
@ -42,7 +42,7 @@
|
|||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
}
|
}
|
||||||
var retVal = this.__treestyletab__determineItemInfo.apply(this, aArgs);
|
var retVal = this.__bookmarkMultipleTabs__determineItemInfo.apply(this, aArgs);
|
||||||
if (folderNameOverride &&
|
if (folderNameOverride &&
|
||||||
this._action == ACTION_ADD) {
|
this._action == ACTION_ADD) {
|
||||||
let dialogInfo = window.arguments[0];
|
let dialogInfo = window.arguments[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user