File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { join } from 'node:path' ;
2
2
import osName from 'os-name' ;
3
3
import { promisify } from 'node:util' ;
4
- import { platform } from 'node:os' ;
4
+ import { platform , hostname } from 'node:os' ;
5
5
import { createRequire } from 'node:module' ;
6
6
import { fileURLToPath } from 'node:url' ;
7
7
@@ -287,7 +287,6 @@ export class HTMLBuilder {
287
287
options
288
288
)
289
289
: [ ] ;
290
-
291
290
let rootPath = this . storageManager . rootPathFromUrl ( url , daurlAlias ) ;
292
291
let data = {
293
292
daurl : url ,
@@ -454,6 +453,7 @@ export class HTMLBuilder {
454
453
pageTitle : name ,
455
454
pageDescription : '' ,
456
455
browser,
456
+ hostname : hostname ( ) ,
457
457
cpuBenchmark,
458
458
windowSize,
459
459
os : osInfo ,
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ block content
26
26
tr
27
27
td Emulated mobile
28
28
td Yes
29
+ if hostname
30
+ tr
31
+ td Hostname
32
+ td #{hostname}
29
33
if cpuBenchmark
30
34
tr
31
35
td CPU benchmark
You can’t perform that action at this time.
0 commit comments