mirror of
https://github.com/gamaio/lobli.git
synced 2024-12-22 19:52:40 +00:00
Create the context menu when chrome starts.
This should fix a bug I've been experiencing where the context menu would not exist until I uninstall the extension and install it again from the chrome webstore
This commit is contained in:
parent
26faf57b8b
commit
371b00f452
@ -13,3 +13,8 @@ chrome.runtime.onInstalled.addListener(function() {
|
||||
chrome.contextMenus.create({"title": "Shorten link to this file with lob.li", "contexts": ["image", "video", "audio"], "id": "shortenFile"});
|
||||
chrome.contextMenus.create({"title": "Shorten link with lob.li", "contexts": ["link"], "id": "shortenLink"});
|
||||
});
|
||||
|
||||
chrome.runtime.onStartup.addListener(function(){
|
||||
chrome.contextMenus.create({"title": "Shorten link to this file with lob.li", "contexts": ["image", "video", "audio"], "id": "shortenFile"});
|
||||
chrome.contextMenus.create({"title": "Shorten link with lob.li", "contexts": ["link"], "id": "shortenLink"});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user