Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
Fixed default values and font size in UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandrenkov committed Mar 10, 2020
1 parent cb99b7b commit e1cbd53
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The [js](js) directory contains the following scripts:
| **File** | **Purpose** |
| :--- | :--- |
| [album.js](js/album.js) | Implements a container for Videos. |
| [background.js](js/background.js) | Activates the extension in the browser toolbar. |
| [injection.js](js/injection.js) | Attaches listeners to browser storage events. |
| [background.js](js/background.js) | Activates the extension in the browser toolbar. |
| [injection.js](js/injection.js) | Attaches listeners to browser storage events. |
| [logger.js](js/logger.js) | Wraps `console` to control the visibility of messages. |
| [manager.js](js/manager.js) | Finds and manages Videos on a page. |
| [popup.js](js/popup.js) | Attaches listeners to the extension UI. |
Expand Down
2 changes: 1 addition & 1 deletion css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ div.help {
}
div.symbol {
color: #AAA;
font-size: 140%;
font-size: 110%;
text-align: center;
user-select: none;
}
Expand Down
1 change: 1 addition & 0 deletions html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../css/popup.css">
<script src="../js/manager.js"></script>
<script src="../js/popup.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function addSliderEventListener() {
// Updates the state of the given slider to reflect the synced "View Threshold" slider state.
function updateSliderState(slider, percent, items) {
const valid = !chrome.runtime.lastError && items.hasOwnProperty("threshold");
const value = valid ? items["threshold"] : 90;
const value = valid ? items["threshold"] : Manager.DEFAULT_THRESHOLD;
slider.value = value;
percent.textContent = value + "%";
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "FreshView for YouTube™",
"short_name": "FreshView for YouTube™",
"description": "Hide YouTube™ videos you've already watched to easily discover fresh content.",
"version": "1.3.0",
"version": "1.3.1",

"icons": {
"16": "img/icon16.png",
Expand Down

0 comments on commit e1cbd53

Please sign in to comment.