From 6c3a50e1d5a54173106b748ef3e81acba23b70dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 20 Mar 2023 07:20:57 +0800 Subject: Don't remove anything from the URL on Emscripten --- interchange.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interchange.cxx b/interchange.cxx index 4f8d9e0..c70fc98 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -29,8 +29,10 @@ namespace QInterchange { interchange_page(path.toLatin1().constData(), [](interchange_response* response) { interchange->emitPage(QString{response->url} - .remove(0, sampleUrlLength + 1), - QString{response->data}); +#ifndef __EMSCRIPTEN__ + .remove(0, sampleUrlLength + 1) +#endif + , QString{response->data}); interchange_free_response(response); }); } -- cgit v1.2.3