diff options
-rwxr-xr-x | tabsort.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -38,7 +38,7 @@ let PLUGIN_INFO = <name>tabsort</name> <description>Add ":tabsort" and ":tabuniq" command.</description> <description lang="ja">":tabsort", ":tabuniq" コマンドを追加する</description> - <version>1.1.1</version> + <version>1.1.2</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <minVersion>2.3</minVersion> <maxVersion>2.3</maxVersion> @@ -74,8 +74,8 @@ let PLUGIN_INFO = tab: tab, browser: #1=(tab.linkedBrowser), doc: #2=(#1#.contentDocument), - url: (#1#._userTypedValue || (#2#.location && #2#.location.href)), - title: #2#.title, + url: (#1#.__SS_restore_data ? #1#.__SS_restore_data.url : (#2#.location && #2#.location.href)), + title: (#2#.title || #1#.__SS_restore_data.title) } for ([i, tab] in util.Array(config.browser.mTabs)) ]; @@ -94,7 +94,7 @@ let PLUGIN_INFO = rms.forEach(function (rm) config.tabbrowser.removeTab(rm.tab)); } - // getTabs().forEach(liberator.log); + getTabs().forEach(liberator.log); function tabSort (cmp) { getTabs().sort(cmp).forEach(function (it, i) (i == it.index) || config.tabbrowser.moveTabTo(it.tab, i)); |