var => let
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6433 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
610c86a54b
commit
0bbcf97f55
@ -720,7 +720,7 @@ catch(e) {
|
||||
|
||||
if (!draggedTab) {
|
||||
// dropping of urls
|
||||
var url;
|
||||
let url;
|
||||
for (let i = 0; i < tabbar._supportedLinkDropTypes.length; i++) {
|
||||
let dataType = tabbar._supportedLinkDropTypes[i];
|
||||
let isURLList = dataType == 'text/uri-list';
|
||||
@ -736,10 +736,10 @@ catch(e) {
|
||||
|
||||
nsDragAndDrop.dragDropSecurityCheck(aEvent, sv.getCurrentDragSession(), url);
|
||||
|
||||
var bgLoad = this.getPref('browser.tabs.loadInBackground');
|
||||
let bgLoad = this.getPref('browser.tabs.loadInBackground');
|
||||
if (aEvent.shiftKey) bgLoad = !bgLoad;
|
||||
|
||||
var tab = sv.getTabFromEvent(aEvent);
|
||||
let tab = sv.getTabFromEvent(aEvent);
|
||||
if (!tab || dt.dropEffect == 'copy') {
|
||||
sv.performDrop(dropActionInfo, b.loadOneTab(getShortcutOrURI(url), { inBackground: bgLoad }));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user