Skip to content

Commit

Permalink
fix: anonymous browser is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Jan 4, 2024
1 parent 3110c99 commit c76532b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/viewtify/Viewtify.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ public static synchronized Viewtify application() {
if (applicationLaunchingClass == null) {
applicationLaunchingClass = StackWalker.getInstance(Option.RETAIN_CLASS_REFERENCE)
.walk(stacks -> stacks.filter(stack -> stack.getMethodName().equals("main")).findAny())
.get()
.getDeclaringClass();
.map(x -> x.getDeclaringClass())
.orElse(null);
}
return viewtify;
}
Expand Down

0 comments on commit c76532b

Please sign in to comment.