Skip to content

Commit

Permalink
fix initial switch option to true
Browse files Browse the repository at this point in the history
  • Loading branch information
claromes committed Mar 23, 2024
1 parent a3cb4ff commit 4a46469
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
// Set storage option
chrome.storage.local.set({ switchStateIG: switchStateIG, selectedOptionIG: selectedOptionIG });

if (switchStateIG) {
if (!switchStateIG) {
let baseUrl;

if (selectedOptionIG === 'picuki') {
Expand Down Expand Up @@ -211,7 +211,7 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
// Set storage option
chrome.storage.local.set({ switchStateTT: switchStateTT, selectedOptionTT: selectedOptionTT });

if (switchStateTT) {
if (!switchStateTT) {
let baseUrlTT;

if (selectedOptionTT === 'urlebird') {
Expand Down
10 changes: 5 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ body {
content: "";
height: 16px;
width: 16px;
left: 2px;
left: 38px;
top: 2px;
background-color: white;
border-radius: 50%;
}

input:checked+.slider {
input:not(:checked)+.slider {
background: #ff5919;
}

input:checked+.slider-tt {
input:not(:checked)+.slider-tt {
background: #ff0a58;
}

input:checked+.slider:before {
transform: translateX(36px);
transform: translateX(-36px);
}

.option {
Expand Down Expand Up @@ -100,4 +100,4 @@ input:checked+.slider:before {
img {
vertical-align: bottom;
padding-right: 5px;
}
}

0 comments on commit 4a46469

Please sign in to comment.