Skip to content

Commit

Permalink
Added Ctrl-R to reload & fixed platinum-browser#5 (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
redstone-dev authored Nov 5, 2022
1 parent 8c7f869 commit 2cfa290
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/bookmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ function updateBookmarksVar() {
* Stores the bookmarks in localstorage and runs updateBookmarksVar
*/
function storeBookmarks() {
if (bookmarks.length === 0) bookmarksBar.classList.add("hidden");
else bookmarksBar.classList.remove("hidden");
if (bookmarks.length === 0) bookmarksBar.classList.add("hidden");
//else bookmarksBar.classList.remove("hidden");
window.localStorage.setItem("bookmarks", JSON.stringify(bookmarks));
updateBookmarksVar();
}

addBookmarkToBar('https://co.wukko.me/', 'Upload')
//addBookmarkToBar('https://co.wukko.me/', 'Upload')
2 changes: 1 addition & 1 deletion src/getChangeLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fetch("../package.json")
const desc = document.getElementById('desc');
desc.innerHTML = marked.parse(res.body);
});
});
});

function getVerDisp() {
fetch("../package.json")
Expand Down
7 changes: 7 additions & 0 deletions src/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,11 @@ function handleTabShortcuts(e) {
removeTab();
e.preventDefault();
}
if (isModifier && e.key === "r") {
document.querySelector('.current').reload();
e.preventDefault();
}
if (isModifier && e.key === "u") {
alert('dunno how to open devtools :(')
}
};

0 comments on commit 2cfa290

Please sign in to comment.