Skip to content

Commit

Permalink
Added FF sync support
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfRevo committed Mar 10, 2023
1 parent e3073f5 commit 34c545d
Show file tree
Hide file tree
Showing 8 changed files with 10,146 additions and 9,599 deletions.
1,836 changes: 889 additions & 947 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "containerise",
"version": "3.9.0",
"version": "3.9.1.0",
"description": "Firefox extension to automatically open websites in a container",
"main": "index.js",
"repository": "https://kintesh@github.com/kintesh/containerise.git",
"author": "Kintesh <i.am@kinte.sh>",
"repository": "https://wolfrevo@github.com/wolfrevo/containerise-ce-sync.git",
"author": "WolfRevo <i.am@Wolf.Revo>",
"license": "MIT",
"scripts": {
"webpack": "webpack --config ./webpack.dev --watch",
Expand All @@ -31,7 +31,6 @@
"markdown-it-table-of-contents": "^0.4.4",
"markdown-it-vanilla-loader": "^1.0.10",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.14.1",
"raw-loader": "^3.1.0",
"rimraf": "^3.0.2",
"sass-loader": "^8.0.0",
Expand All @@ -42,12 +41,14 @@
"webpack-merge": "^4.2.1"
},
"dependencies": {
"punycode": "^2.1.1"
"node-sass": "^4.12.0",
"punycode": "^2.1.1",
"sass": "^1.58.3"
},
"webExt": {
"sourceDir": "build",
"sign": {
"id": "{59b0b4d3-57a8-4798-b9f1-af39aeac882a}"
"id": "[email protected]"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('ContextualIdentities', () => {
},
},
storage: {
local: {},
sync: {},
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/Storage/PrefixStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class PrefixStorage {
this.PREFIX = '';
// The key to use to get the name of the object when calling set()
this.SET_KEY = 'key';
this.storage = browser.storage.local;
this.storage = browser.storage.sync;
this.listeners = new Map();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Storage/__tests__/HostStorage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('HostStorage', () => {
beforeEach(() => {
global.browser = {
storage: {
local: {
sync: {

get: jest.fn(() => new Promise((resolve) =>
resolve({
Expand Down
6 changes: 3 additions & 3 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "Containerise CE",
"version": "3.9.0.1",
"description": "Firefox extension to automatically open websites in a container (Community Edition)",
"name": "Containerise CE sync",
"version": "3.9.1.0",
"description": "Firefox extension to automatically open websites in a container (Community Edition with Firefox Sync)",
"icons": {
"48": "icons/icon.png",
"96": "icons/icon.png"
Expand Down
2 changes: 1 addition & 1 deletion src/temporaryContainers.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function cleanUpTemporaryContainers() {
}).catch(console.error));
}
return Promise.all(promises).then(() => {
browser.storage.local.get().then(console.debug);
browser.storage.sync.get().then(console.debug);
});
});
}
Loading

0 comments on commit 34c545d

Please sign in to comment.