[bug] fix link visual icon update

This commit is contained in:
zombieFox 2020-06-13 11:06:55 +01:00
parent ce68335117
commit 778a86a1dc
5 changed files with 14 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "nightTab", "name": "nightTab",
"version": "5.37.2", "version": "5.37.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "nightTab", "name": "nightTab",
"version": "5.37.2", "version": "5.37.3",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -1011,9 +1011,18 @@ var update = (function() {
arrayItem.visual = { arrayItem.visual = {
display: arrayItem.display, display: arrayItem.display,
letter: arrayItem.letter, letter: arrayItem.letter,
image: null, image: "",
icon: arrayItem.icon icon: arrayItem.icon
}; };
if (arrayItem.visual.icon.label == null) {
arrayItem.visual.icon.label = "";
};
if (arrayItem.visual.icon.name == null) {
arrayItem.visual.icon.name = "";
};
if (arrayItem.visual.icon.prefix == null) {
arrayItem.visual.icon.prefix = "";
};
delete arrayItem.display; delete arrayItem.display;
delete arrayItem.letter; delete arrayItem.letter;
delete arrayItem.icon; delete arrayItem.icon;

View File

@ -1,6 +1,6 @@
var version = (function() { var version = (function() {
var current = "5.37.2"; var current = "5.37.3";
var name = "Zonked Tarsier"; var name = "Zonked Tarsier";

View File

@ -2,7 +2,7 @@
"name": "nightTab", "name": "nightTab",
"short_name": "nightTab", "short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "5.37.2", "version": "5.37.3",
"manifest_version": 2, "manifest_version": 2,
"chrome_url_overrides": { "chrome_url_overrides": {
"newtab": "index.html" "newtab": "index.html"