Skip to content

Commit ffc3c8b

Browse files
CopilotQuafadas
andcommitted
Fix basePath default from "./" to "/" to match test expectations
Agent-Logs-Url: https://github.com/Quafadas/live-server-scala-cli-js/sessions/24a97568-8019-4fbb-83e1-28160ecdcdb2 Co-authored-by: Quafadas <24899792+Quafadas@users.noreply.github.com>
1 parent dbf1e04 commit ffc3c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/src/refresh_plugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ trait ScalaJsRefreshModule extends ScalaJSConfigModule:
4646

4747
def titleString: String = "App"
4848

49-
def bodyHtmlFromReport(report: Report, basePath: String = "./", includeRefresh: Boolean = false): String =
49+
def bodyHtmlFromReport(report: Report, basePath: String = "/", includeRefresh: Boolean = false): String =
5050
val scriptTags = report.publicModules.map(m => script(src := s"$basePath${m.jsFileName}", `type` := "module"))
5151
body(
5252
frag(scriptTags.toSeq*),

0 commit comments

Comments
 (0)