Skip to content

Commit

Permalink
🔖 version 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Oct 30, 2019
1 parent 85661fe commit 75aba62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Scrroll In",
"short_name": "scrroll-in",
"version": "2.3",
"description": "Never forget where you left a page",
"version": "2.4",
"description": "An extension to save scroll position of a webpage",
"permissions": [
"tabs",
"storage",
Expand Down
5 changes: 2 additions & 3 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
const urls = result["scroll-mark"];

// if no saved scrolls are available
const heading = document.getElementById("saved-scroll-heading");
if (Object.entries(urls).length === 0 && urls.constructor === Object) {
const heading = document.getElementById("saved-scroll-heading");
heading.innerHTML =
"<h1 id='saved-scroll-heading'>Save some scrrolls first!</h1>";
"<h1 id='saved-scroll-heading'>You don't have any saved scrrolls yet!</h1>";
} else {
const heading = document.getElementById("saved-scroll-heading");
heading.innerHTML =
"<h1 id='saved-scroll-heading'>All Saved Scrolls</h1>";

Expand Down

0 comments on commit 75aba62

Please sign in to comment.