Skip to content

Commit

Permalink
Merge pull request #175 from SimonStnn/dev
Browse files Browse the repository at this point in the history
1.8.1 update
  • Loading branch information
SimonStnn authored May 15, 2024
2 parents 8bc5743 + 0fca99f commit a864f60
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Pop-a-loon",
"description": "A fun Chrome extension that lets balloons rise on your screen",
"description": "The new rising trend (literally) that changes the browser game completely.",
"permissions": ["storage", "alarms", "idle"],
"icons": {
"16": "./resources/icons/icon-16.png",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pop-a-loon",
"version": "1.8.0",
"description": "A fun Chrome extension that lets balloons rise on your screen",
"version": "1.8.1",
"description": "The new rising trend (literally) that changes the browser game completely.",
"private": true,
"scripts": {
"test": "jest",
Expand All @@ -11,11 +11,12 @@
"dev:firefox": "npm run dev:firefox:noremote --",
"dev:firefox:remote": "cross-env REMOTE=\"remote\" BROWSER=firefox webpack --mode development",
"dev:firefox:noremote": "cross-env REMOTE=\"noremote\" BROWSER=firefox webpack --mode development",
"_build:prepare": "mkdirp build",
"build:chrome": "cross-env BROWSER=chrome webpack --mode production",
"build:chrome:zip": "rimraf ./build/pop-a-loon-chrome.zip && npm run build:chrome && npm run _build:prepare && cd dist && bestzip ../build/pop-a-loon-chrome.zip * && cd ..",
"build:firefox": "cross-env BROWSER=firefox webpack --mode production",
"build:firefox:zip": "rimraf ./build/pop-a-loon-firefox.zip && npm run build:firefox && npm run _build:prepare && cd dist && bestzip ../build/pop-a-loon-firefox.zip * && cd ..",
"_build:prepare": "mkdirp build && rimraf dist/",
"build:chrome": "npm run _build:prepare && cross-env BROWSER=chrome webpack --mode production",
"build:chrome:zip": "npm run _build:prepare && rimraf ./build/pop-a-loon-chrome.zip && npm run build:chrome && cd dist && bestzip ../build/pop-a-loon-chrome.zip * && cd ..",
"build:firefox": "npm run _build:prepare && cross-env BROWSER=firefox webpack --mode production",
"build:firefox:zip": "npm run _build:prepare && rimraf ./build/pop-a-loon-firefox.zip && npm run build:firefox && cd dist && bestzip ../build/pop-a-loon-firefox.zip * && cd ..",
"build:all:zip": "npm run build:chrome:zip && npm run build:firefox:zip && npm run zip:source",
"zip:source": "npm run _build:prepare && node tasks/zip-source.js",
"prepare": "husky"
},
Expand Down
6 changes: 5 additions & 1 deletion src/background/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const updateBadgeColors = () => {
// Get the config from the local storage
const config = (await storage.get('config')) || initalConfig;
// Merge the local config with the remote config
await storage.set('config', { ...config, ...remoteConfig });
await storage.set('config', {
...initalConfig,
...config, // config overrides the initial config
...remoteConfig, // remoteConfig overrides the config
});

// Create the alarm for the spawn interval
createSpawnAlarm('spawnBalloon');
Expand Down

0 comments on commit a864f60

Please sign in to comment.