mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
parent
52fab78625
commit
06a6a3f773
@ -143,7 +143,9 @@ export default {
|
||||
this.openmct.notifications.alert(message);
|
||||
}
|
||||
|
||||
window.location.hash = hash;
|
||||
const relativeHash = hash.slice(hash.indexOf('#'));
|
||||
const url = new URL(relativeHash, `${location.protocol}//${location.host}${location.pathname}`);
|
||||
window.location.hash = url.hash;
|
||||
},
|
||||
formatTime(unixTime, timeFormat) {
|
||||
return Moment.utc(unixTime).format(timeFormat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user