Commit f4337292 authored by Aral Balkan's avatar Aral Balkan
Browse files

Make __dirname declaration cross-platform

parent 29e9b307
......@@ -10,8 +10,9 @@
import fs from 'fs'
import tls from 'tls'
import path from 'path'
import { fileURLToPath } from 'url'
const __dirname = new URL('.', import.meta.url).pathname
const __dirname = fileURLToPath(new URL('.', import.meta.url))
* Monkey patches the TLS module to accept the Let’s Encrypt staging certificate.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment