web: Construct relative SWF URLs using document base
This commit is contained in:
parent
c0e84e646e
commit
7fa35f2a82
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue