Commit 26047d8e authored by yPhil's avatar yPhil
Browse files

Lingering cache removal routine in PTL.dialog's killTab

parent be55f569
# Changelog
## 1.3.3
- Default search engine update (because of various instances searx RSS restrictions)
### Bugfixes
- A legacy db call was left in dialog's killFeed
- Removed lingering (sync) debug symbols
## 1.3.2
- New favicon error handling #b92f6cb6
......
{
"name": "petrolette",
"description": "The news reader that doesn't know you",
"version": "v1.3.2",
"version": "v1.3.3",
"private": true,
"license": "GPL-3.0-only",
"HTTP_PORT": 8000,
......
......@@ -726,11 +726,6 @@ PTL.dialog = {
class: "dangerous translate",
click: function() {
$selectedPanel.find('li.feed').each(function() {
localStorage.setItem($(this).find('div.dataStore').attr('data-url'), '');
console.log('deleting (%s) from cache', $(this).find('div.dataStore').attr('data-url'));
});
$selectedTab.remove();
$selectedPanel.remove();
......@@ -796,15 +791,6 @@ PTL.dialog = {
click: function() {
$thisFeed.hide('fade', 1000, function() {
$(this).remove();
// localStorage.setItem(thisFeedUrl, '');
try {
PTL.db.del(thisFeedUrl);
} catch (error) {
console.log('DB Error:: %s (%s)', error);
}
PTL.tab.saveTabs();
});
PTL.dialog.kill($dialog);
......
......@@ -121,7 +121,8 @@ PTL.i18n.translations = {
"and" : { fr: "et" , ja: "そして", es: "y" },
"a lot of work" : { fr: "beaucoup de travail" , ja: "多くの作業", es: "mucho trabajo" },
"In order to keep developing Pétrolette with new features I need your help." : { fr: "Afin de continuer à développer Pétrolette avec de nouvelles fonctionnalités, j'ai besoin de votre aide." , ja: "新しい機能を備えたペトロレットを開発し続けるために、私はあなたの助けが必要です。", es: "Para seguir desarrollando Pétrolette con nuevas funciones, necesito su ayuda." },
"In order to keep maintaining Pétrolette and developing her with new features I need your help." : { fr: "Afin de continuer à maintenir la Pétrolette et de la développer avec de nouvelles fonctionnalités, j'ai besoin de votre aide." , ja: "Pétroletteを維持し、新しい機能を維持し続けるために、私はあなたの助けが必要です。", es: "Para mantener el mantenimiento de la Pétrolette y desarrollarla con nuevas características, necesito su ayuda." },
"Please consider to support the Pétrolette project by sending a donation. Even the smallest amount will help a lot." : { fr: "Pensez à soutenir le projet Pétrolette en envoyant un don. Même un tout petit montant aidera beaucoup." , ja: "寄付を送って、ペトロレットプロジェクトを支援することを検討してください。 少量でも大いに役立ちます。", es: "Considere apoyar el proyecto Pétrolette enviando una donación. Incluso la cantidad más pequeña ayudará mucho." },
"Search prefix" : { fr: "Préfixe de recherche" , ja: "検索プレフィックス", es: "Prefijo de búsqueda" },
......
......@@ -68,8 +68,6 @@ PTL.sync = (function() {
if (PTL.util.isValidPTLFile(JSON.parse(data))) {
console.log('DATA: %s (%s)', JSON.stringify(data));
PTL.tab.populate(JSON.parse(data));
} else {
......
......@@ -345,7 +345,7 @@
<p>
<span class="translate"
data-content="Pétrolette is free software. However the development requires">
Pétrolette is free software. However the development requires</span> <span><a class="translate ptl-link" data-content="a lot of time" href="https://www.youtube.com/watch?v=JlbMEx9H6FE">a lot of time</a></span> <span class="translate" data-content="and">and</span> <a class="translate ptl-link" data-content="a lot of work" href="https://framagit.org/yphil/petrolette/-/commits/master">a lot of work</a>. <span data-content="In order to keep developing Pétrolette with new features I need your help." class="translate">In order to keep developing Pétrolette with new features I need your help.</span>
Pétrolette is free software. However the development requires</span> <span><a class="translate ptl-link" data-content="a lot of time" href="https://www.youtube.com/watch?v=JlbMEx9H6FE">a lot of time</a></span> <span class="translate" data-content="and">and</span> <a class="translate ptl-link" data-content="a lot of work" href="https://framagit.org/yphil/petrolette/-/commits/master">a lot of work</a>. <span data-content="In order to keep maintaining Pétrolette and developing her with new features I need your help." class="translate">In order to keep maintaining Pétrolette and developing her with new features I need your help.</span>
</p>
<p class="translate" data-content="Please consider to support the Pétrolette project by sending a donation. Even the smallest amount will help a lot.">
Please consider to support the Pétrolette project by sending a donation. Even the smallest amount will help a lot.
......
......@@ -112,7 +112,7 @@ router.use(function(req, res) {
router.use(function(error, req, res, next) {
console.error('500 req: %s (%s)', req.url);
res.status(500).send('500: Internal Server Error');
res.status(500).send('500: whoa! Internal Server Error');
});
module.exports = router;
......@@ -88,7 +88,6 @@
<script src="/bower/DOMPurify/dist/purify.min.js"></script>
<script src="/static/js/PTL.main.js"></script>
<script src="/static/js/PTL.db.js"></script>
<script src="/static/js/PTL.prefs.js"></script>
<script src="/static/js/PTL.i18n.js"></script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment