Skip to content
This repository was archived by the owner on Feb 29, 2020. It is now read-only.

Commit c171c4b

Browse files
committed
Allow preview endpoints to trigger bookmark panel messages
1 parent 0b7dba2 commit c171c4b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/ASRouter.jsm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,12 @@ class _ASRouter {
14871487
} else {
14881488
await this.setState({ lastMessageId: message ? message.id : null });
14891489
}
1490-
await this._sendMessageToTarget(message, target, trigger);
1490+
await this._sendMessageToTarget(
1491+
message,
1492+
target,
1493+
trigger,
1494+
Boolean(previewMsgs.length)
1495+
);
14911496
}
14921497

14931498
handleMessageRequest({ triggerId, template, returnAll = false }) {

lib/BookmarkPanelHub.jsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class _BookmarkPanelHub {
274274
removeMessage(target, win) {
275275
this._removeContainer(target, win);
276276
this.toggleRecommendation(target, false);
277-
this._state = null;
277+
this._state = {};
278278
}
279279

280280
async _forceShowMessage(target, message) {

0 commit comments

Comments
 (0)