mirror of
https://github.com/beestat/app.git
synced 2025-06-02 21:26:38 -04:00
Added iOS and Android review prompt
This commit is contained in:
parent
e329eb38c9
commit
45c2d0969b
@ -58,6 +58,12 @@ beestat.component.card.rate_app_reminder.prototype.decorate_contents_ = function
|
|||||||
.set_background_color(beestat.style.color.green.dark)
|
.set_background_color(beestat.style.color.green.dark)
|
||||||
.set_background_hover_color(beestat.style.color.green.light)
|
.set_background_hover_color(beestat.style.color.green.light)
|
||||||
.addEventListener('click', function() {
|
.addEventListener('click', function() {
|
||||||
|
beestat.setting(
|
||||||
|
'ui.rate_app_reminder_hide_until',
|
||||||
|
moment().utc()
|
||||||
|
.add(1000, 'year')
|
||||||
|
.format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
);
|
||||||
window.open(store_url);
|
window.open(store_url);
|
||||||
})
|
})
|
||||||
.render(parent);
|
.render(parent);
|
||||||
@ -102,7 +108,6 @@ beestat.component.card.rate_app_reminder.prototype.decorate_top_right_ = functio
|
|||||||
*/
|
*/
|
||||||
beestat.component.card.rate_app_reminder.should_show = function() {
|
beestat.component.card.rate_app_reminder.should_show = function() {
|
||||||
return (
|
return (
|
||||||
beestat.user.get().user_id === 1 &&
|
|
||||||
(
|
(
|
||||||
beestat.platform() === 'android' ||
|
beestat.platform() === 'android' ||
|
||||||
beestat.platform() === 'ios'
|
beestat.platform() === 'ios'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user