1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2025-12-15 16:33:13 +00:00

5 Commits

Author SHA1 Message Date
c68d2d4cfb Version 0.1.16 2018-10-21 16:04:55 +02:00
f07e530446 Bug Startpage not loaded 2018-10-21 16:03:50 +02:00
8abd79bc5f Version 0.1.15 2018-10-21 04:37:05 +02:00
723724f50b Bug White page on first install 2018-10-21 04:36:25 +02:00
ddd081672f Update makebeta 2018-10-21 04:11:04 +02:00
3 changed files with 16 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ git checkout beta
version=$1
sed -i "/\"version\":/c\ \ \"version\": \"$version\"," src/manifest.json
sed -i 's/quickdial@matmoul.com/quickdialtest@matmoul.com/' src/manifest.json
git commit -a -m "Beta Version $version"

View File

@@ -13,6 +13,18 @@ app.init = function(){ // Init module
app.Bookmarks.initListener();
app.ContextMenus.initMenu();
});
// Start page workaround :
setTimeout(function(){
browser.tabs.query({}).then( function(tabs) {
tabs.forEach(function(itm){
if(itm.url=='about:blank'){
browser.tabs.update(itm.id, {url: browser.extension.getURL('dial')});
}
});
});
}, 500);
});
};
@@ -102,7 +114,7 @@ app.Messages.init = function(){ // Init Messages Listeners
app.Settings = {}; // Settings helper object
app.Settings.init = function(callback){ // Load settings and nodes
browser.storage.local.get().then(function(data){
if(Object.keys(data).length == 0) {
if(Object.keys(data).length == 0 || ! data.settings) {
data = {
version: 3,
settings: {
@@ -239,6 +251,7 @@ app.Settings.update = function(settings, callback){ // Save new settings
app.Settings.save(callback);
};
app.Settings.save = function(callback){ // Save settings
if(! app.settings) return;
var data = { version: 4 };
data.settings = app.settings;
data.node = app.node;

View File

@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Quick Dial",
"version": "0.1.14",
"version": "0.1.16",
"author": "MatMoul",
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
"developer": {