Skip to content

Commit 3a452ec

Browse files
authored
Merge pull request #86 from AutomateThePlanet/navramov_MM
Add log to browser notifications
2 parents 8f76e4a + 9e8527c commit 3a452ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bellatrix.web/src/main/java/solutions/bellatrix/web/services/BrowserService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ public void injectWarningNotificationToast(String format, Object... args) {
347347

348348
public void injectNotificationToast(String message, long timeoutMillis, ToastNotificationType type) {
349349
String escapedMessage = StringEscapeUtils.escapeEcmaScript(message);
350+
Log.info(type.name() + " " + escapedMessage);
350351
String executionScript = """
351352
window.$bellatrixToastContainer = !window.$bellatrixToastContainer ? Object.assign(document.createElement('div'), {id: 'bellatrixToastContainer', style: 'position: fixed; top: 0; height: 100vh; padding-bottom: 20px; display: flex; pointer-events: none; z-index: 2147483646; justify-content: flex-end; flex-direction: column; overflow: hidden;'}) : window.$bellatrixToastContainer;
352353
let $message = '""" + escapedMessage + """

0 commit comments

Comments
 (0)