This commit is contained in:
parent
144b9bfe50
commit
2eddeb2035
|
|
@ -1187,7 +1187,6 @@ db.getNote = function(id) {
|
|||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
console.log(result[0].public);
|
||||
if(result.length > 0) {
|
||||
result[0].public == 1 ? resolve(result[0].content) : resolve("提示:备忘处于私密状态!");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1233,10 +1233,9 @@ api.getFaviconByTimer = function() {
|
|||
if (bookmarks.length == 1) {
|
||||
var id = bookmarks[0].id;
|
||||
var faviconState = bookmarks[0].favicon_state;
|
||||
var url = bookmarks[0].url;
|
||||
var url = encodeURI(bookmarks[0].url);
|
||||
var faviconPath = './public/images/favicon/' + id + '.ico';
|
||||
var defaultFile = './public/images/favicon/default.ico';
|
||||
console.log("getBookmarkWaitFavicon url:" + url);
|
||||
|
||||
if (!/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/.test(url)) {
|
||||
copyFile(defaultFile, faviconPath);
|
||||
|
|
|
|||
Loading…
Reference in New Issue