|
@ -30,13 +30,13 @@ export default class TopMessage extends Vue { |
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
if ( |
|
|
if ( |
|
|
settings?.warnIfTestServer && |
|
|
settings?.warnIfTestServer && |
|
|
window.location.hostname !== AppString.PROD_TIME_SAFARI_SERVER |
|
|
window.location.hostname !== AppString.PROD_TIME_SAFARI_SERVER_HOST |
|
|
) { |
|
|
) { |
|
|
const didPrefix = settings.activeDid?.slice(11, 14); |
|
|
const didPrefix = settings.activeDid?.slice(11, 14); |
|
|
this.message = "You're linked to a test server, user " + didPrefix; |
|
|
this.message = "You're linked to a test server, user " + didPrefix; |
|
|
} else if ( |
|
|
} else if ( |
|
|
settings?.warnIfProdServer && |
|
|
settings?.warnIfProdServer && |
|
|
window.location.hostname === AppString.PROD_TIME_SAFARI_SERVER |
|
|
window.location.hostname === AppString.PROD_TIME_SAFARI_SERVER_HOST |
|
|
) { |
|
|
) { |
|
|
const didPrefix = settings.activeDid?.slice(1, 14); |
|
|
const didPrefix = settings.activeDid?.slice(1, 14); |
|
|
this.message = |
|
|
this.message = |
|
|