Atteimpt to correct the bug on first click
This commit is contained in:
parent
034cc4c0a0
commit
b127e1e9f9
@ -2,11 +2,16 @@ var instance
|
|||||||
var windowWidth
|
var windowWidth
|
||||||
var windowHeight
|
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(){
|
function shareURL(){
|
||||||
browser.tabs.query({active: true},function(tabs){
|
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"]);
|
let gettingPrefs = browser.storage.local.get(["instance_url","window_width","window_height"]);
|
||||||
gettingPrefs.then(onGot, onError);
|
gettingPrefs.then(onGot,onError);
|
||||||
|
|
||||||
var tab = tabs[0];
|
var tab = tabs[0];
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version" : 2,
|
"manifest_version" : 2,
|
||||||
"name": "Add to (Semantic)Scuttle",
|
"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.",
|
"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",
|
"homepage_url" : "https://github.com/FrenchHope/Add-to-Semantic-Scuttle-WebExt",
|
||||||
"icons" : {
|
"icons" : {
|
||||||
|
Loading…
Reference in New Issue
Block a user