Skip to content

Commit b77b833

Browse files
committed
Add setting option to refresh metadata
1 parent 5308560 commit b77b833

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

code/js/metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ function populate () {
5050
});
5151
}
5252

53-
if (!localStorage["metadata"]) {
53+
if (!localStorage["metadata"] || location.hash === "#refresh") {
5454
populate();
5555
}

code/popup.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@
5353

5454
<a class="btn float-right" target="_blank" id="favButton" href="javascript:void(0)">Favorites</a>
5555

56+
<button class="btn dropdown-toggle dropdown_button float-right" type="button" data-toggle="dropdown">Settings<span class="caret"></span></button>
57+
<ul class="dropdown-menu" id="main_drop_menu">
58+
<li class="dropdown_button" title="Refresh data">
59+
<a href="?#refresh">Refresh</a>
60+
</li>
61+
</ul>
5662

57-
5863
<div class="dropdown">
5964
<button class="btn dropdown-toggle dropdown_button float-right" type="button" data-toggle="dropdown">More Apps<span class="caret"></span></button>
6065
<ul class="dropdown-menu" id="main_drop_menu">

0 commit comments

Comments
 (0)