Skip to content

Commit f6f63c6

Browse files
author
Tim Berners-Lee
committed
Fix missing dom param to widgets.errorMessageBlock
1 parent 6a8ccf7 commit f6f63c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/authn/authn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ export function selectWorkspace (
12751275
;(button as any).style = buttonStyle
12761276
button.textContent = `Start new ${noun} at this URI`
12771277
button.addEventListener('click', function (_event) {
1278-
let newBase = baseField.value
1278+
let newBase = baseField.value.replace(' ', '%20') // do not re-encode in general, as % encodings may exist
12791279
if (newBase.slice(-1) !== '/') {
12801280
newBase += '/'
12811281
}
@@ -1369,7 +1369,7 @@ export function selectWorkspace (
13691369
logInLoadPreferences(context) // kick off async operation
13701370
.then(displayOptions)
13711371
.catch(err => {
1372-
box.appendChild(widgets.errorMessageBlock(err))
1372+
box.appendChild(widgets.errorMessageBlock(context.dom, err))
13731373
})
13741374

13751375
return box // return the box element, while login proceeds

0 commit comments

Comments
 (0)