From f1bfa8f2ec1ff0237f5f96486e02b56d52570669 Mon Sep 17 00:00:00 2001 From: nosamu <71368227+n0samu@users.noreply.github.com> Date: Fri, 1 Dec 2023 19:21:31 -0600 Subject: [PATCH] Build --- HISTORY.txt | 6 ++++++ dist/HISTORY.txt | 6 ++++++ dist/VERSIONS.txt | 4 ++-- dist/embed.js | 2 +- dist/runtime.js | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/HISTORY.txt b/HISTORY.txt index fc00503..a889399 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -1,3 +1,9 @@ +Bundle version: 0.1.1 +Build at: Fri Dec 01 2023 19:20:43 GMT-0600 (Central Standard Time) +--- + +--- + Bundle version: 0.1.0 Build at: Sat Nov 18 2023 16:15:52 GMT-0600 (Central Standard Time) --- diff --git a/dist/HISTORY.txt b/dist/HISTORY.txt index fc00503..a889399 100644 --- a/dist/HISTORY.txt +++ b/dist/HISTORY.txt @@ -1,3 +1,9 @@ +Bundle version: 0.1.1 +Build at: Fri Dec 01 2023 19:20:43 GMT-0600 (Central Standard Time) +--- + +--- + Bundle version: 0.1.0 Build at: Sat Nov 18 2023 16:15:52 GMT-0600 (Central Standard Time) --- diff --git a/dist/VERSIONS.txt b/dist/VERSIONS.txt index b597ad2..13a28af 100644 --- a/dist/VERSIONS.txt +++ b/dist/VERSIONS.txt @@ -1,5 +1,5 @@ -Bundle version: 0.1.0 -Build at: Sat Nov 18 2023 16:34:17 GMT-0600 (Central Standard Time) +Bundle version: 0.1.1 +Build at: Fri Dec 01 2023 19:20:43 GMT-0600 (Central Standard Time) ========== Modules: @awayfl/avm1:0.2.167 diff --git a/dist/embed.js b/dist/embed.js index ea59c14..17de189 100644 --- a/dist/embed.js +++ b/dist/embed.js @@ -1,2 +1,2 @@ -!function(){"use strict";const t=document.currentScript.src,e=new URL(".",t).href,n=new URL("./assets/splash.jpg",e).href;class i extends HTMLElement{static get observedAttributes(){return["src","width","height"]}get player(){return this._player}get config(){return this._runConfig}set config(t){this._runConfig=t}get src(){return this._runConfig.src||this.getAttribute("src")}set src(t){this._runConfig.src=t}set width(t){this._runConfig.width=t}get width(){return this._runConfig.width||this.getAttribute("width")}set height(t){this._runConfig.height=t}get height(){return this._runConfig.height||this.getAttribute("height")}set runtimeBaseUrl(t){this._runConfig.runtimeBaseUrl=t}get runtimeBaseUrl(){return this._runConfig.runtimeBaseUrl}constructor(){super(),this._runConfig={},this.onError=this.onError.bind(this),this._root=this.attachShadow({mode:"closed"})}_getRuntimeUrl(){const t=this._runConfig.runtimeBaseUrl;return{loader:new URL("loader.js",t).href,runtime:new URL("runtime.js",t).href,baseUrl:t}}_dropPlayer(){this._gameFrame&&(this._gameFrame.remove(),this._player=null)}onError(t){const e=this._runConfig.onError&&self[this._runConfig.onError];"function"==typeof e&&e(t),this.dispatchEvent(new ErrorEvent("error",{error:new Error("Awayfl runtime error"),message:(null==t?void 0:t.message)||t}))}_attachRuntimeEvents(){const t=this._gameFrame.contentWindow;t.addEventListener("awayfl-player-init",(({detail:t})=>{this._player=t}),{once:!0}),t.addEventListener("awayfl-player-load",(()=>{const t=this._runConfig.onLoad&&self[this._runConfig.onLoad];"function"==typeof t&&t(),this.dispatchEvent(new CustomEvent("load")),this._gameFrame.style.display=""}),{once:!0}),t.addEventListener("awayfl-player-progress",(({detail:t})=>{const e=this._runConfig.onProgress&&self[this._runConfig.onProgress];"function"==typeof e&&e(t),this.dispatchEvent(new CustomEvent("progress",{detail:t}))}))}_buildTemplate(t){const e='\n\n\t\n\tAwayFL Embedded Player 0.1.0\n\t\n\t