mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-29 18:49:41 +01:00
Popup does not show injections (#1043)
This commit is contained in:
parent
a86e67b29d
commit
0587988882
@ -33,7 +33,7 @@ var stateManager = {};
|
|||||||
stateManager.registerInjection = function (tabIdentifier, injection, url) {
|
stateManager.registerInjection = function (tabIdentifier, injection, url) {
|
||||||
let injectionIdentifier, registeredTab, injectionCount, missingCount, initiatorDomain, listedToManipulateDOM;
|
let injectionIdentifier, registeredTab, injectionCount, missingCount, initiatorDomain, listedToManipulateDOM;
|
||||||
|
|
||||||
injectionIdentifier = injection.source + injection.path + injection.version;
|
injectionIdentifier = injection.source + injection.path;
|
||||||
registeredTab = stateManager.tabs[tabIdentifier];
|
registeredTab = stateManager.tabs[tabIdentifier];
|
||||||
registeredTab.injections[injectionIdentifier] = injection;
|
registeredTab.injections[injectionIdentifier] = injection;
|
||||||
|
|
||||||
@ -357,7 +357,7 @@ chrome.webRequest.onErrorOccurred.addListener(function (requestDetails) {
|
|||||||
|
|
||||||
chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
|
chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
|
||||||
let knownRequest = stateManager.requests[requestDetails.requestId];
|
let knownRequest = stateManager.requests[requestDetails.requestId];
|
||||||
if (knownRequest) {
|
if (knownRequest['targetDetails']['result'] !== false) {
|
||||||
stateManager.registerInjection(
|
stateManager.registerInjection(
|
||||||
knownRequest.tabIdentifier,
|
knownRequest.tabIdentifier,
|
||||||
knownRequest.targetDetails,
|
knownRequest.targetDetails,
|
||||||
|
@ -29,6 +29,10 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Popup accessibility improved (<a href="https://codeberg.org/nobody/LocalCDN/issues/1041">#1041</a>)</li>
|
<li>Popup accessibility improved (<a href="https://codeberg.org/nobody/LocalCDN/issues/1041">#1041</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p>Fixed</p>
|
||||||
|
<ul>
|
||||||
|
<li>Popup does not show injections (<a href="https://codeberg.org/nobody/LocalCDN/issues/1043">#1043</a>)</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
<div class="topic-label">
|
<div class="topic-label">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user