summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-20 07:20:57 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-20 07:20:57 +0800
commit6c3a50e1d5a54173106b748ef3e81acba23b70dc (patch)
treeb943af91f8e6f8b659cd35f250c0a0aba5852e52
parenta7e82434ad76c9a254f81dd116b8efe4c7a7208e (diff)
Don't remove anything from the URL on Emscripten
-rw-r--r--interchange.cxx6
1 files 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);
});
}