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 blocked_redirect by fixing promises and images #380

Merged
merged 5 commits into from May 8, 2019
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 blocked_redirect by fixing promises and images

  • Loading branch information
IAmThePan committed May 7, 2019
commit abc9ea08d7669016c310f0c862dfa6ada9fe630b
@@ -33,7 +33,7 @@ export default function (origin) {
* @return {Promise} response or null
*/
function sendMessageInPromise(name, message) {
panelSendPromiseMessage(name, message, origin);
return panelSendPromiseMessage(name, message, origin);
}

/**
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -81,7 +81,7 @@ export function sendMessageInPromise(name, message, origin = '') {
});
});
}
return new Promise(((resolve) => {
return new Promise((resolve) => {
chrome.runtime.sendMessage({
name,
message,
@@ -93,7 +93,7 @@ export function sendMessageInPromise(name, message, origin = '') {
}
resolve(response);
});
}));
});
}

/**
@@ -50,9 +50,9 @@
<div id="redirect-prevent"></div>
<br>
<div id="redirect-url" style="display: none;"></div>
<img src="../images/click2play/ghosty_blocked.data">
<a href="#" id="action-through-once"><img src="../images/click2play/allow_through.data" /></a>
<a href="#" id="action-always"><img src="../images/click2play/allow_unblock.data" /></a>
<img src="../images/click2play/ghostery_blocked.png">
<a href="#" id="action-through-once"><img src="../images/click2play/allow_once.png" /></a>
<a href="#" id="action-always"><img src="../images/click2play/allow_always.png" /></a>
</div>
</body>
</html>
ProTip! Use n and p to navigate between commits in a pull request.