File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class AppRoot {
40
40
}
41
41
42
42
async componentWillLoad ( ) {
43
- if ( await SettingsService . getAnalyticsSetting ( ) ) {
43
+ if ( await SettingsService . getAnalyticsSetting ( true ) ) {
44
44
Sentry . init ( {
45
45
dsn : 'https://2b0b525209b646f49e438cff86c3e117@sentry.io/1331915' ,
46
46
release : 'block-photos@2.0'
Original file line number Diff line number Diff line change 1
1
import StorageService from './storage-service' ;
2
2
3
3
export default class SettingsService {
4
- static async getAnalyticsSetting ( ) : Promise < boolean > {
5
- return ( await StorageService . getItem ( 'analytics-settings' ) ) === 'true' ;
4
+ static async getAnalyticsSetting ( updateCache ?: boolean ) : Promise < boolean > {
5
+ return (
6
+ ( await StorageService . getItem ( 'analytics-settings' , updateCache ) ) ===
7
+ 'true'
8
+ ) ;
6
9
}
7
10
8
11
static async setAnalyticsSetting ( allowAnalytics : boolean ) : Promise < any > {
You can’t perform that action at this time.
0 commit comments