Closing "Use OAuth" window outputs [object Object] in orange feedback bar below input
janpio opened this issue · comments
Jan Piotrowski commented
Jan Piotrowski commented
From look at the code, this seems to be setting this value:
contributors-on-github/src/auth.js
Lines 85 to 87 in 018a5ee
In Firefox this message
indeed seems to be a simple string:
Error: "User cancelled or denied access."
But in Chrome it seems to be an object now:
Not sure how to properly fix this.
Michał Gołębiowski-Owczarek commented
How about:
document.querySelector("#feedback").textContent = message.message
? `Error: ${message.message}`
: message;