Skip to content

Commit 9d467c4

Browse files
authored
Notify when the native app is not up to date (#69)
1 parent ad5abdd commit 9d467c4

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/popup/interface.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var FuzzySort = require("fuzzysort");
55
var Moment = require("moment");
66
var SearchInterface = require("./searchinterface");
77

8+
const LATEST_NATIVE_APP_VERSION = 3000002;
9+
810
/**
911
* Popup main interface
1012
*
@@ -110,6 +112,22 @@ function view(ctl, params) {
110112
)
111113
);
112114

115+
if (this.settings.version < LATEST_NATIVE_APP_VERSION) {
116+
nodes.push(
117+
m("div.updates", [
118+
m("span", "Update native host app: "),
119+
m(
120+
"a",
121+
{
122+
href: "https://github.com/browserpass/browserpass-native#installation",
123+
target: "_blank"
124+
},
125+
"instructions"
126+
)
127+
])
128+
);
129+
}
130+
113131
return nodes;
114132
}
115133

src/popup/popup.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,13 @@ body {
223223
color: @match-text-color;
224224
font-style: normal;
225225
}
226+
227+
.updates {
228+
padding: @login-part-padding;
229+
border-top: 1px solid @hover-bg-color;
230+
231+
span,
232+
a {
233+
color: @error-text-color;
234+
}
235+
}

0 commit comments

Comments
 (0)