forked from matrix/element-web
rename MatrixChat defaultDeviceDisplayName prop
This commit is contained in:
parent
3a819a29b7
commit
17733a66f9
|
@ -137,7 +137,7 @@ var makeRegistrationUrl = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getDefaultDeviceName() {
|
function getDefaultDeviceDisplayName() {
|
||||||
// strip query-string and fragment from uri
|
// strip query-string and fragment from uri
|
||||||
let u = url.parse(window.location.href);
|
let u = url.parse(window.location.href);
|
||||||
u.search = "";
|
u.search = "";
|
||||||
|
@ -253,7 +253,7 @@ async function loadApp() {
|
||||||
startingFragmentQueryParams={fragparts.params}
|
startingFragmentQueryParams={fragparts.params}
|
||||||
enableGuest={true}
|
enableGuest={true}
|
||||||
onLoadCompleted={onLoadCompleted}
|
onLoadCompleted={onLoadCompleted}
|
||||||
default_device_name={getDefaultDeviceName()}
|
defaultDeviceDisplayName={getDefaultDeviceDisplayName()}
|
||||||
/>,
|
/>,
|
||||||
document.getElementById('matrixchat')
|
document.getElementById('matrixchat')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue