From 5e32d0692ac15c8d548f939e55f94d18b66520f1 Mon Sep 17 00:00:00 2001 From: Kira Edges Date: Fri, 16 May 2025 11:11:36 +0400 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B0=D0=BA,=20=D0=BE=D1=82=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.v b/main.v index ea2d5f6..d484edd 100644 --- a/main.v +++ b/main.v @@ -33,8 +33,7 @@ pub fn (app &Index) css(mut ctx Context) veb.Result { @['/index.js'] pub fn (app &Index) js(mut ctx Context) veb.Result { - script := os.read_file("static/index.js") or {panic(err)} - return ctx.text(script) + return ctx.file("static/index.js") } @['/v-logo.png']