Atteimpt to correct the bug on first click
This commit is contained in:
parent
034cc4c0a0
commit
b127e1e9f9
@ -2,9 +2,14 @@ var instance
|
||||
var windowWidth
|
||||
var windowHeight
|
||||
|
||||
// prefs are not loaded once before shareURL it won't work on first click.
|
||||
var gettingPrefs = browser.storage.local.get(["instance_url","window_width","window_height"]);
|
||||
gettingPrefs.then(onGot,onError);
|
||||
|
||||
function shareURL(){
|
||||
browser.tabs.query({active: true},function(tabs){
|
||||
|
||||
// prefs are loaded again when the function is called to manage changes in the options page.
|
||||
let gettingPrefs = browser.storage.local.get(["instance_url","window_width","window_height"]);
|
||||
gettingPrefs.then(onGot,onError);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version" : 2,
|
||||
"name": "Add to (Semantic)Scuttle",
|
||||
"version" : "0.4",
|
||||
"version" : "0.5",
|
||||
"description" : "Add bookmarks to a (Semantic)Scuttle instance, a social bookmarking tool experimenting with tags and collaborative tag descriptions.",
|
||||
"homepage_url" : "https://github.com/FrenchHope/Add-to-Semantic-Scuttle-WebExt",
|
||||
"icons" : {
|
||||
|
Loading…
Reference in New Issue
Block a user