Skip to content

Commit

Permalink
Weather settings oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Mar 25, 2020
1 parent 10c8025 commit bd17b45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ <h3 id="greetings"></h3>

<script src="src/scripts/lang.js"></script>

<!-- <script src="src/scripts/script.js"></script>
<script src="src/scripts/settings.js" defer></script> -->
<script src="src/scripts/script.js"></script>
<script src="src/scripts/settings.js" defer></script>

<script src="src/scripts/local.js"></script>
<!-- <script src="src/scripts/main.js"></script> -->
<!-- <script src="src/scripts/local.js"></script>
<script src="src/scripts/main.js"></script> -->
</body>
</html>
14 changes: 2 additions & 12 deletions src/scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function initParams() {


//bg
if (data.background_type === "dynamic") {
if (data.background_type === "dynamic" || Object.keys(data).length === 0) {
id("dynamic").style.display = "block"
}
else if (data.background_type === "custom") {
Expand All @@ -272,19 +272,9 @@ function initParams() {
id("i_type").value = "dynamic"
chrome.storage.sync.set({background_type: "dynamic"})
}



//ajoute les thumbnails au custom background

if (data.background_type === "custom")





//weather settings
if (data.weather) {
if (data.weather && Object.keys(data).length > 0) {

let cityPlaceholder = (data.weather.city ? data.weather.city : "City");
id("i_city").setAttribute("placeholder", cityPlaceholder);
Expand Down

0 comments on commit bd17b45

Please sign in to comment.