aboutsummaryrefslogtreecommitdiffstats
path: root/app.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-09-19 13:31:30 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-09-19 13:31:30 +0200
commit2dce484a2aa6403968367e0001e505c09ba07ed3 (patch)
tree26e990f8b58ae6e5ea6f81f93475d150a8f3be3c /app.js
parent5ba71d33d8e3a7092bc409ebd3204fadc3fdeb04 (diff)
downloadmy_apps-2dce484a2aa6403968367e0001e505c09ba07ed3.tar.gz
my_apps-2dce484a2aa6403968367e0001e505c09ba07ed3.tar.bz2
my_apps-2dce484a2aa6403968367e0001e505c09ba07ed3.zip
video playinline param added
Diffstat (limited to 'app.js')
-rw-r--r--app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.js b/app.js
index 37ec8e2..70ded1f 100644
--- a/app.js
+++ b/app.js
@@ -1,5 +1,5 @@
const { createServer } = require('http')
-const { URL } = require('url')
+const { parse } = require('url')
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
@@ -10,7 +10,7 @@ app.prepare().then(() => {
createServer((req, res) => {
// Be sure to pass `true` as the second argument to `url.parse`.
// This tells it to parse the query portion of the URL.
- const parsedUrl = new URL(req.url, true)
+ const parsedUrl = parse(req.url, true)
const { pathname, query } = parsedUrl
if (pathname === '/a') {