Skip to content

Commit

Permalink
通常の chrome でチャンネルダイアログが動かなくなっていた不具合を修正しました
Browse files Browse the repository at this point in the history
  • Loading branch information
poochin committed Jan 26, 2013
1 parent f06eb47 commit 31f3492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userscript/tumblr_tornado.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Tumblr Tornado
// @namespace https://github.com/poochin
// @version 1.2.8
// @version 1.2.8.1
// @description Tumblr にショートカットを追加するユーザスクリプト
// @include http://www.tumblr.com/dashboard
// @include http://www.tumblr.com/dashboard?oauth_token=*
Expand Down Expand Up @@ -1069,7 +1069,7 @@
},
channelDialog: function channelDialog(post, postdata) {

if (window.GM_getValue || JSON.parse(GM_getValue('oauthconfigs', '[]')).length) {
if (Tornado.gm_api && JSON.parse(GM_getValue('oauthconfigs', '[]')).length) {
var state_text = Tornado.vals.state_texts[postdata["post[state]"]] || '';
var title = ['Reblog', (state_text) ? ('as ' + state_text) : ('') , 'to [channel]'].join(' ');

Expand Down

0 comments on commit 31f3492

Please sign in to comment.