mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 08:25:42 +00:00
Fixed missing __dirname in all the self-hosted examples
This commit is contained in:
@@ -5,10 +5,13 @@
|
||||
|
||||
import path from "node:path";
|
||||
import { promises as fs } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { PKPass } from "passkit-generator";
|
||||
import { app } from "./webserver.js";
|
||||
import { getCertificates } from "./shared.js";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
function getRandomColorPart() {
|
||||
return Math.floor(Math.random() * 255);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user