Skip to content

Commit

Permalink
Fix JS support (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tiurin authored Jul 3, 2024
1 parent 35d059f commit a894505
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy docs
on:
push:
branches:
- master
- docs

jobs:
github-pages:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
on:
push:
tags:
- 'v*'
- '*'

jobs:
publish:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class UltronWrapperException : AssertionError {
: super(
"$message${
if (cause is UltronWrapperException || cause is UltronOperationException) ""
else "\nOriginal error - ${cause::class.qualifiedName}: ${cause.message}"
else "\nOriginal error - ${cause::class.simpleName}: ${cause.message}"
}"
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ abstract class AbstractListener {
this.id = id
}
constructor(){
this.id = this::class.qualifiedName.orEmpty()
this.id = this::class.simpleName.orEmpty()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class AbstractListenersContainer<T: AbstractListener> {
}

fun <T : AbstractListener> removeListener(listenerClass: KClass<T>) {
val exist = listeners.find { it.id == listenerClass.qualifiedName }
val exist = listeners.find { it.id == listenerClass.simpleName }
if (exist != null) {
listeners.remove(exist)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ abstract class ULogger {
this.id = id
}
constructor(){
this.id = this::class.qualifiedName.orEmpty()
this.id = this::class.simpleName.orEmpty()
}

abstract fun info(message: String): Any
Expand Down

0 comments on commit a894505

Please sign in to comment.