From d94e507bcf6282357b363385684672012b6cc003 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Wed, 30 Oct 2024 11:15:44 -0400 Subject: [PATCH] fix readfile function to use custom fs --- js_compiler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js_compiler.go b/js_compiler.go index 73c2463..424ddcf 100644 --- a/js_compiler.go +++ b/js_compiler.go @@ -3,7 +3,6 @@ package main import ( "io/fs" "log" - "os" ) func compileCustomJS() []byte { @@ -18,7 +17,7 @@ func compileCustomJS() []byte { return nil } - content, err := os.ReadFile(path) + content, err := customJsFS.ReadFile(path) if err != nil { return err }