Fix indent

This commit is contained in:
YUKI Hiroshi 2015-08-28 18:22:44 +09:00
parent 01dab35627
commit e2b143b372

View File

@ -1454,6 +1454,7 @@ TreeStyleTabWindowHelper.overrideExtensionsDelayed = function TSTWH_overrideExte
case 'TabOpen': case 'TabOpen':
let tab = aEvent.originalTarget let tab = aEvent.originalTarget
let b = TreeStyleTabService.getTabBrowserFromChild(tab); let b = TreeStyleTabService.getTabBrowserFromChild(tab);
console.log('b.selectedTab.linkedBrowser.currentURI.spec '+b.selectedTab.linkedBrowser.currentURI.spec);
if (b.selectedTab.linkedBrowser.currentURI.spec != 'about:sync-tabs') if (b.selectedTab.linkedBrowser.currentURI.spec != 'about:sync-tabs')
return; return;
@ -1480,24 +1481,24 @@ TreeStyleTabWindowHelper.overrideExtensionsDelayed = function TSTWH_overrideExte
}, 0); }, 0);
} }
else if ('locallyOpenTabMatchesURL' in engine) { else if ('locallyOpenTabMatchesURL' in engine) {
let uri = tab.getAttribute('label'); let uri = tab.getAttribute('label');
if (engine.locallyOpenTabMatchesURL(uri)) if (engine.locallyOpenTabMatchesURL(uri))
return;
for (let [guid, client] in Iterator(engine.getAllClients()))
{
if (client.tabs.some(function({ urlHistory }) {
return urlHistory[0] == uri;
})) {
let parent = b.selectedTab;
window.setTimeout(function() {
if (tab.parentNode && !b.treeStyleTab.getParentTab(tab))
b.treeStyleTab.attachTabTo(tab, parent);
}, 0);
return; return;
for (let [guid, client] in Iterator(engine.getAllClients()))
{
if (client.tabs.some(function({ urlHistory }) {
return urlHistory[0] == uri;
})) {
let parent = b.selectedTab;
window.setTimeout(function() {
if (tab.parentNode && !b.treeStyleTab.getParentTab(tab))
b.treeStyleTab.attachTabTo(tab, parent);
}, 0);
return;
}
} }
} }
}
return; return;
case 'unload': case 'unload':