Fix edge control (#6401)

Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
Christian Günter 2023-08-11 20:09:40 +02:00 committed by GitHub
parent 0bf48f2b03
commit 5524b28fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,10 +111,16 @@ function debugOutput(text, dstID) {
function submitSapeventForm(params, action, method, form) {
function getSapeventPrefix() {
// Depending on the used browser control and its version, different URL schemes
// are used which we distinguish here
if (document.querySelector('a[href*="file:///SAPEVENT:"]')) {
return "file:///"; //Prefix for chromium based browser control
// Prefix for old (SAPGUI <= 8.00 PL3) chromium based browser control
return "file:///";
} else if (document.querySelector('a[href^="sap-cust"]')) {
// Prefix for new (SAPGUI >= 8.00 PL3 Hotfix 1) chromium based browser control
return "sap-cust://sap-place-holder/";
} else {
return "";
return ""; // No prefix for old IE control
}
}