mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 21:33:19 +00:00
chore(native): keep the page script list private to the offline shell
This commit is contained in:
@@ -56,7 +56,7 @@ export function manifestFiles(manifest: unknown, language?: string): string[] {
|
||||
* (theme-boot.js, shell-guard.js). They block the first paint and come from
|
||||
* the public folder, which the build's manifest does not list.
|
||||
*/
|
||||
export function pageScripts(doc: Document = document): string[] {
|
||||
function pageScripts(doc: Document = document): string[] {
|
||||
const files: string[] = [];
|
||||
doc.querySelectorAll<HTMLScriptElement>('script[src]').forEach((script) => {
|
||||
if (script.type === 'module') return;
|
||||
|
||||
Reference in New Issue
Block a user