web: Construct relative SWF URLs using document base

This commit is contained in:
nosamu 2022-07-06 23:03:45 -05:00 committed by relrelb
parent c0e84e646e
commit 7fa35f2a82
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ export class RufflePlayer extends HTMLElement {
if ("url" in options) {
console.log(`Loading SWF file ${options.url}`);
this.swfUrl = new URL(options.url, document.location.href);
this.swfUrl = new URL(options.url, document.baseURI);
const parameters = {
...sanitizeParameters(