[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",
"version": "5.37.2",
"version": "5.37.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"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.",
"main": "index.js",
"scripts": {

View File

@ -1011,9 +1011,18 @@ var update = (function() {
arrayItem.visual = {
display: arrayItem.display,
letter: arrayItem.letter,
image: null,
image: "",
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.letter;
delete arrayItem.icon;

View File

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

View File

@ -2,7 +2,7 @@
"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.",
"version": "5.37.2",
"version": "5.37.3",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"