@@ 1,7 1,7 @@
.pkgenv <- new.env(parent=emptyenv())
-.onAttach <- function(...) {
+.onLoad <- function(...) {
ctx <- v8()
ctx$source(system.file("js/bundle.js", package="uaparserjs"))
@@ 13,4 13,4 @@
assign("cache", cache, envir=.pkgenv)
-}>
\ No newline at end of file
+}