Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix opt out confg message background #127

Merged
merged 2 commits into from Jul 10, 2018
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Next
fix opt out confg message background
  • Loading branch information
trickpattyFH20 committed Jul 9, 2018
commit 999c35d96de1b849ead890ab68587cd8abceea23
@@ -210,10 +210,13 @@ class RewardsApp {
window.removeEventListener('focus', this.focusListener);
}

messageBackground(name, message) {
if (this.port &&
messageBackground(name, message, signal = false) {
if (
signal &&
this.port &&
(message.actionId !== 'rewards_off') &&
(message.actionId !== 'rewards_on')) {
(message.actionId !== 'rewards_on')
) {
this.port.postMessage({
name,
message
@@ -232,7 +235,7 @@ class RewardsApp {
origin: 'rewards-hotdog-card',
type: !offerSignal ? 'action-signal' : 'offer-action-signal',
};
this.messageBackground('rewardSignal', message);
this.messageBackground('rewardSignal', message, true);
}
}

@@ -125,10 +125,6 @@ class Rewards {
case 'rewardSignal':
this.sendSignal(message.message);
break;
case 'rewardsPromptAccepted':
// @TODO set conf disabled
conf.rewards_accepted = true;
break;
case 'rewardSeen':
this.markRewardRead(message.offerId);
button.update();
ProTip! Use n and p to navigate between commits in a pull request.