commit | 2d63337ed6351f5c5065390f43bacf2395416048 | [log] [tgz] |
---|---|---|
author | Jack Franklin <[email protected]> | Mon Jul 17 10:31:05 2023 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 17 11:51:36 2023 |
tree | 28a4bd68afbf12afaa48c7e735b8c6eb281acb8d | |
parent | 1d6bb1564deadee6359dfe5dea3ec53071bf7fab [diff] [blame] |
Fix errors when running component server index Passing an array to `path.join` is not supported, it takes unlimited arguments rather than an array of one. This was introduced in crrev.com/c/4678757, but I think the bots were happy because they do not use the index page and instead navigate directly to examples. This error only triggered on the index page. As a drive-by, I also bumped the font size as otherwise they use the default, rather small, DevTools font size. Bug: none Change-Id: I580c454d62e3ce66065bdb21c2fc7b0349825637 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4685569 Reviewed-by: Andres Olivares <[email protected]> Commit-Queue: Andres Olivares <[email protected]> Auto-Submit: Jack Franklin <[email protected]>
diff --git a/scripts/component_server/server.js b/scripts/component_server/server.js index 07fd19f..b2cd8c7 100644 --- a/scripts/component_server/server.js +++ b/scripts/component_server/server.js
@@ -156,7 +156,7 @@ function createServerIndexFile(componentNames) { const linksToStyleSheets = styleSheetPaths - .map(link => `<link rel="stylesheet" href="${sharedResourcesBase}${path.join(link.split('/'))}" />`) + .map(link => `<link rel="stylesheet" href="${sharedResourcesBase}${path.join(...link.split('/'))}" />`) .join('\n'); // clang-format off