Bookmarks issue

This commit is contained in:
Alyssa X 2022-01-12 15:13:04 +01:00
parent d525c19fac
commit e5b8ed9e15
3 changed files with 3 additions and 2 deletions

View file

@ -198,7 +198,7 @@ function getBookmarks() {
for (var i = 0; i < bookmarks.length; i++) {
var bookmark = bookmarks[i];
if (bookmark.url) {
actions.push({title:bookmark.title, desc:"Bookmark", id:bookmark.id, type:"bookmark", action:"bookmark", emoji:true, emojiChar:"⭐️", keycheck:false})
actions.push({title:bookmark.title, desc:"Bookmark", id:bookmark.id, url:bookmark.url, type:"bookmark", action:"bookmark", emoji:true, emojiChar:"⭐️", keycheck:false})
}
if (bookmark.children) {
process_bookmark(bookmark.children);

View file

@ -148,6 +148,7 @@ $(document).ready(function(){
// Handle actions from the omni
function handleAction() {
var action = actions.find(x => x.title == $(".omni-item-active .omni-item-name").text());
console.log(action);
closeOmni();
if ($(".omni-extension input").val().toLowerCase().startsWith("/remove")) {
chrome.runtime.sendMessage({request:"remove", type:action.type, action:action});

View file

@ -2,7 +2,7 @@
"name": "Omni",
"description": "Supercharge Chrome with commands, shortcuts, and more",
"offline_enabled": true,
"version": "1.0.7",
"version": "1.0.8",
"manifest_version": 3,
"action": {
"icons": {