Skip to content

Commit a7830eb

Browse files
committed
fix: Replaced classLoader in DriverJar
1 parent 07867c2 commit a7830eb

File tree

1 file changed

+1
-1
lines changed
  • driver-bundle/src/main/java/com/microsoft/playwright/impl/driver/jar

1 file changed

+1
-1
lines changed

driver-bundle/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private FileSystem initFileSystem(URI uri) throws IOException {
114114
}
115115

116116
public static URI getDriverResourceURI() throws URISyntaxException {
117-
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
117+
ClassLoader classloader = DriverJar.class.getClassLoader();
118118
return classloader.getResource("driver/" + platformDir()).toURI();
119119
}
120120

0 commit comments

Comments
 (0)