Skip to content

Commit

Permalink
v2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyuno committed Jun 25, 2017
1 parent 2d0f0d5 commit ae3b7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "にこさぽ (ニコ生サポート)",
"manifest_version": 2,
"version": "2.2.2",
"version": "2.2.3",
"browser_action": {
"default_icon": "images/icon.png",
"default_title": "放送中の番組を確認する",
Expand Down
6 changes: 4 additions & 2 deletions src/javascripts/autoEnter/AutoEnterCommunity.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class AutoEnterCommunity {
const lastState = storagedData[response.requestId].state;
if (lastState === 'offair') {
storagedData[response.requestId].state = 'onair';

store.set(_listKey, storagedData);
// 自動次枠移動が有効になっている場合は無視する.
const tabId = NiconamaTabs.getTabId(id);
if (tabId) {
Expand All @@ -48,7 +48,7 @@ export default class AutoEnterCommunity {
notification.onclick = () => {
chrome.tabs.update(Number(tabId), { active: true });
};
return;
store.set(_listKey, storagedData);
} else {
_move(storagedData, id);
}
Expand All @@ -58,10 +58,12 @@ export default class AutoEnterCommunity {
}
} else if (lastState === 'onair' || lastState === 'init') {
storagedData[response.requestId].state = 'onair';
store.set(_listKey, storagedData);
}
} else {
// CLOSED
storagedData[response.requestId].state = 'offair';
store.set(_listKey, storagedData);
}
store.set(_listKey, storagedData);
});
Expand Down

0 comments on commit ae3b7af

Please sign in to comment.