fix for safari 10

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-07-25 18:39:01 +02:00
1 parent 5d28ce7427
commit f8b2e7f1ea
6 files changed
+9 -11

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ export default class ConsoleTableEntry extends Vue {
commandClick(event: Event) {
const eventTarget = event.target as Element
if (eventTarget.localName === "a" && eventTarget.className.indexOf('command') !== -1) {
const command = eventTarget.innerHTML.replaceAll('<br>', '\n')
const command = eventTarget.innerHTML.replace(/<br>/g, '\n')
this.$emit('command-click', command)
}