more optimizations, remove WTVIRC for now, upgrade test.js
This commit is contained in:
@@ -2,7 +2,7 @@ const minisrv_service_file = true;
|
||||
|
||||
const favstore_exists = session_data.favstore.favstoreExists();
|
||||
|
||||
if (favstore_exists != true)
|
||||
if (favstore_exists !== true)
|
||||
{
|
||||
session_data.favstore.createFavstore();
|
||||
headers = `300 OK
|
||||
@@ -13,7 +13,7 @@ const folder_array = session_data.favstore.getFolders();
|
||||
const url = request_headers.request;
|
||||
const key = url.split('?')[1]
|
||||
const scfav = session_data.favstore.getShortcutKey(key);
|
||||
if (!scfav.id || scfav.id == "none") {
|
||||
if (!scfav.id || scfav.id === "none") {
|
||||
headers = `400 You have not assigned a favorite to ${key}`
|
||||
} else {
|
||||
const fav = session_data.favstore.getFavorite(scfav.folder, scfav.id);
|
||||
|
||||
Reference in New Issue
Block a user