Skip to content

Commit

Permalink
remove artificial splashscreen remove delay
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsc committed Oct 23, 2023
1 parent 8368c81 commit 65438cf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export class AppComponent {
}

initializeApp() {
BigNumber.config({ DECIMAL_PLACES: 25 })
this.platform.ready().then(() => {
this.storage.migrateToCapacitor3().then(async () => {
BigNumber.config({ DECIMAL_PLACES: 25 })
const networkName = this.api.getNetworkName()
// migrate to 3.2+
const result = await this.storage.getBooleanSetting(networkName + 'migrated_to_3.2', false)
Expand All @@ -66,11 +66,6 @@ export class AppComponent {
}) // just initialize the theme service

this.setAndroidBackButtonBehavior()

/* AdMob.initialize({
requestTrackingAuthorization: false,
testingDevices: []
});*/
})
})
}
Expand Down
19 changes: 19 additions & 0 deletions src/app/services/boot-preload.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* // Copyright (C) 2020 - 2021 Bitfly GmbH
* //
* // This file is part of Beaconchain Dashboard.
* //
* // Beaconchain Dashboard is free software: you can redistribute it and/or modify
* // it under the terms of the GNU General Public License as published by
* // the Free Software Foundation, either version 3 of the License, or
* // (at your option) any later version.
* //
* // Beaconchain Dashboard is distributed in the hope that it will be useful,
* // but WITHOUT ANY WARRANTY; without even the implied warranty of
* // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* // GNU General Public License for more details.
* //
* // You should have received a copy of the GNU General Public License
* // along with Beaconchain Dashboard. If not, see <http://www.gnu.org/licenses/>.
*/

import { Injectable } from '@angular/core'
import { ValidatorUtils } from '../utils/ValidatorUtils'
import ClientUpdateUtils from '../utils/ClientUpdateUtils'
Expand Down
2 changes: 1 addition & 1 deletion src/app/utils/ThemeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class ThemeUtils {
setTimeout(() => {
splashScreenCallback()
this.applyColorInitially()
}, 200)
}, 10)
return preferenceDarkMode as StoredTheme
})
}
Expand Down

0 comments on commit 65438cf

Please sign in to comment.