1
0
forked from metin2/web

Fixed Ruffle fetch override for HTTPS

This commit is contained in:
Exynox 2024-12-08 19:55:40 +02:00
parent a1d47b633e
commit 00e2a43015

View File

@ -146,7 +146,7 @@
{{-- Override fetch of hardcoded URL in .swf file; https://github.com/ruffle-rs/ruffle/issues/1486 --}} {{-- Override fetch of hardcoded URL in .swf file; https://github.com/ruffle-rs/ruffle/issues/1486 --}}
(function (originalFetch) { (function (originalFetch) {
const changeUrl = function (url) { const changeUrl = function (url) {
if (url === "http://dlcl.gfsrv.net/metin2/img/metin2_movie2.flv") if (url.includes("/metin2/img/metin2_movie2.flv"))
url = "{{ asset('assets/main/img/movies/metin2_movie2.flv') }}"; url = "{{ asset('assets/main/img/movies/metin2_movie2.flv') }}";
return url; return url;