Skip to content

Commit

Permalink
Update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvd committed Nov 27, 2024
1 parent 69d6cb7 commit 76cff54
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "turn-off-the-lights-browser-extension",
"version": "4.5.1",
"version": "4.5.2",
"description": "Browser extension",
"homepage": "https://wwww.turnoffthelights.com",
"author": "Stefan Van Damme",
Expand Down
10 changes: 5 additions & 5 deletions src/manifests/safari.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "__MSG_descriptionshort__",
"omnibox": { "keyword" : "totl" },
"action": {
"default_title": "__MSG_pageatitle__",
"default_icon": {
"19": "images/iconstick19safari.png",
"38": "images/iconstick38safari.png"
}
"default_title": "__MSG_pageatitle__",
"default_icon": {
"19": "images/iconstick19safari.png",
"38": "images/iconstick38safari.png"
}
},
"background": {
"service_worker": "scripts/background.js",
Expand Down
8 changes: 8 additions & 0 deletions src/scripts/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ function defaultgetsettings(){
if(items["autodimsizepixelheight"] == null){ firstdefaultvalues["autodimsizepixelheight"] = 220; }
if(items["autodimsizepixelwidth"] == null){ firstdefaultvalues["autodimsizepixelwidth"] = 250; }

if(items["lightcolor"] == null){
if(exbrowser == "safari"){
firstdefaultvalues["icon"] = "/images/iconstick38safari.png";
}else{
firstdefaultvalues["icon"] = "/images/iconstick38.png";
}
}

// Save the init value
chrome.storage.sync.set(firstdefaultvalues, function(){
// console.log('Settings saved');
Expand Down
4 changes: 2 additions & 2 deletions xcode/Turn-Off-the-Lights-Safari-extension/Config.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
// https://help.apple.com/xcode/#/dev745c5c974

// Update the version number here for all platforms
VERSION = 4.5.1
BUILD_NUMBER = 131
VERSION = 4.5.2
BUILD_NUMBER = 132
Binary file not shown.

0 comments on commit 76cff54

Please sign in to comment.