mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 15:36:12 +00:00
Improvement: Update bookmark when setting tile parameters
This commit is contained in:
parent
7f719497dc
commit
dd95e95b20
@ -500,6 +500,12 @@ app.GridNodes.updateNode = function(gridNode, value, callback){
|
||||
gridNode.url = value.url;
|
||||
app.GridNodes.refreshNode(gridNode, function(){
|
||||
browser.runtime.sendMessage({ cmd: app.Messages.Commands.gridNodesLoaded });
|
||||
var data = { title: gridNode.title };
|
||||
if(gridNode.url) data.url = gridNode.url;
|
||||
browser.bookmarks.onChanged.removeListener(app.Bookmarks._onChanged);
|
||||
browser.bookmarks.update(gridNode.id, data).then(function(){
|
||||
browser.bookmarks.onChanged.addListener(app.Bookmarks._onChanged);
|
||||
});
|
||||
});
|
||||
}
|
||||
app.GridNodes.saveNode(gridNode);
|
||||
|
Loading…
Reference in New Issue
Block a user