Added swagger and elmah return-to-front-end button
This commit is contained in:
10
src/Server/wwwroot/elmah-ui/custom.js
Normal file
10
src/Server/wwwroot/elmah-ui/custom.js
Normal file
@@ -0,0 +1,10 @@
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
const url = new URL(window.location.href);
|
||||
const btn = document.createElement("a");
|
||||
btn.href = url.searchParams.get('ReturnUrl') ?? "/";
|
||||
btn.innerText = "⎋";
|
||||
btn.setAttribute("aria-label", "Return to Front-End");
|
||||
btn.className = "elmah-return-btn";
|
||||
|
||||
document.body.appendChild(btn);
|
||||
});
|
||||
Reference in New Issue
Block a user