Fixed: Statistics cannot be deleted (#152)
This commit is contained in:
parent
e4c5bc1db0
commit
c8a6daa7bc
|
@ -92,6 +92,10 @@ messenger._handleMessageReceived = function (message, sender, sendResponse) {
|
|||
|
||||
return MessageResponse.ASYNCHRONOUS;
|
||||
}
|
||||
|
||||
if (topic === 'deleteStatistic') {
|
||||
storageManager.statistics = {};
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -223,6 +223,7 @@ statistics._deleteStatistic = function () {
|
|||
chrome.storage.local.set({
|
||||
[Setting.INTERNAL_STATISTICS_DATA]: {}
|
||||
});
|
||||
chrome.runtime.sendMessage({ topic: 'deleteStatistic' });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
<li>Added: OwlCarousel v2.0.0-beta.2.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/148">#148</a>)</li>
|
||||
<li>Added: markdown-it v12.0.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/149">#149</a>)</li>
|
||||
<li>Fixed: Unknown frameworks in statistics page (<a href="https://codeberg.org/nobody/LocalCDN/issues/150">#151</a>)</li>
|
||||
<li>Fixed: Statistics cannot be deleted (<a href="https://codeberg.org/nobody/LocalCDN/issues/151">#152</a>)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
|
Loading…
Reference in New Issue