Skip to content

Commit 023818f

Browse files
committed
Misc fixes
1 parent 45f0bee commit 023818f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

platform/safari/vapi-background.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
/******************************************************************************/
373373

374374
vAPI.isBehindTheSceneTabId = function(tabId) {
375-
return tabId.toString() === this.noTabId;
375+
return tabId.toString() === '-1';
376376
};
377377

378378
vAPI.noTabId = '-1';
@@ -709,7 +709,7 @@
709709
if(iconState.dirty & 2) {
710710
icon.badge = iconState.badge;
711711
}
712-
if(iconState.dirty & 1 && icon.image !== ICON_URLS[iconState.img]) {
712+
if((iconState.dirty & 1) && icon.image !== ICON_URLS[iconState.img]) {
713713
icon.image = ICON_URLS[iconState.img];
714714
}
715715
iconState.dirty = 0;
@@ -905,8 +905,8 @@
905905
// channelName: details.toChannel,
906906
// msg: details.msg
907907
// });
908-
portTo.dispatchMessage(wrapper && wraper.timerId, {
909-
mainProcessId: wrapper && wraper.timerId,
908+
portTo.dispatchMessage(wrapper && wrapper.timerId, {
909+
mainProcessId: wrapper && wrapper.timerId,
910910
channelName: details.toChannel,
911911
msg: details.msg
912912
});

platform/safari/vapi-popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var onLoaded = function() {
3939
}
4040
_toggle.apply(this, arguments);
4141
pane2.style.setProperty("display", "inline-block", "important");
42-
unchainPane2Timeout = setTimeout(unchainPane2, 700);
42+
unchainPane2Timeout = setTimeout(unchainPane2, 400);
4343
updateSize(enabled);
4444
}
4545
else {

0 commit comments

Comments
 (0)