Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Some bug fixes
Browse files Browse the repository at this point in the history
Dotnaught committed Mar 11, 2019
1 parent 22462f4 commit 8becd99
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions js/pageWindow.js
Original file line number Diff line number Diff line change
@@ -54,6 +54,11 @@ for (let i = 0; i < pageList.length; i++) {
const colorKey = trimmedColorObj.replace(/\./g, '');
const setColor = config.get(colorKey, defaultColor);

let filterKeyword = "None";
if (remote.getGlobal('pdb').db[i].hash === 0) {
//processing repo
filterKeyword = remote.getGlobal('pdb').db[i].linkHash;
}
// The beforebegin and afterend positions work only if the node is in the DOM tree and has a parent element.
if (pageList[i].visible) {
//a.insertAdjacentHTML('beforebegin', '<i class="tiny material-icons">delete</i>');
@@ -65,6 +70,7 @@ for (let i = 0; i < pageList.length; i++) {
<label style="margin-left:2.5em" for="colorWell${i}">Color:</label>
<input style="margin-left:0.5em" id="colorWell${i}" type="color" value="${setColor}">
<label style="margin-left:2.5em">Mode: ${remote.getGlobal('pdb').db[i].mode}</label>
<label style="margin-left:2.5em">Filter Keyword: ${filterKeyword}</label>
</div>`,
);
} else {
@@ -76,6 +82,7 @@ for (let i = 0; i < pageList.length; i++) {
<label style="margin-left:2.5em" for="colorWell${i}">Color:</label>
<input style="margin-left:0.5em" id="colorWell${i}" type="color" value="${setColor}">
<label style="margin-left:2.5em">Mode: ${remote.getGlobal('pdb').db[i].mode}</label>
<label style="margin-left:2.5em">Filter Keyword: ${filterKeyword}</label>
</div>`,
);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vulture-feeds",
"productName": "vulture-feeds",
"version": "1.0.5",
"version": "1.0.6",
"description": "A news aggregator for journalists, tuned for finding recent stories and documents.",
"main": "main.js",
"scripts": {

0 comments on commit 8becd99

Please sign in to comment.