File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 39
39
</div >
40
40
</div >
41
41
</modal >
42
- <modal
43
- :show =" settings.showDonate && showDonate && !showWelcome"
44
- :peek =" !showControls"
45
- peekOffset =" 80px"
46
- >
42
+ <modal :show =" showDonate && !showWelcome" :peek =" !showControls" peekOffset =" 80px" >
47
43
<donate-form h =" h2" class =" vis__donate" />
48
44
<div class =" flex" >
49
45
<label class =" btn block" v-if =" donateNumShow > 1" >
@@ -139,8 +135,8 @@ export default {
139
135
if (this .noMoreDonate ) this .stopShowingDonate ()
140
136
},
141
137
142
- displayDonate () {
143
- this .showDonate = true
138
+ displayDonate (force = false ) {
139
+ this .showDonate = force || this . settings . showDonate
144
140
this .donateNumShow ++
145
141
},
146
142
@@ -168,7 +164,7 @@ export default {
168
164
},
169
165
170
166
created () {
171
- this .showDonateTO = setTimeout (this .displayDonate , 6e4 * 20 ) // first at 20 min
167
+ this .showDonateTO = setTimeout (this .displayDonate , 6e4 * 15 ) // first at 15 min
172
168
this .showDonateIV = setInterval (this .displayDonate , 6e4 * 60 ) // then every 60 min
173
169
174
170
const chrome = window .chrome !== undefined
@@ -207,7 +203,7 @@ export default {
207
203
208
204
const onKeydown = e => {
209
205
if (e .code === ' KeyD' ) {
210
- this .showDonate = true
206
+ this .displayDonate ( true )
211
207
}
212
208
if (e .code === ' Escape' ) {
213
209
e .preventDefault ()
You can’t perform that action at this time.
0 commit comments