This commit is contained in:
the-djmaze 2022-11-11 17:50:18 +01:00
parent c929033388
commit a13bb9e930
9 changed files with 236 additions and 18 deletions

View file

@ -23,7 +23,7 @@ const
return new Promise((resolve, reject) => {
const script = doc.createElement('script');
script.onload = () => resolve();
script.onerror = () => reject(new Error('Failed loading ' + src));
script.onerror = () => reject('Failed loading ' + src);
script.src = src;
// script.async = true;
doc.head.append(script);
@ -46,7 +46,7 @@ window.rl = {
},
setWindowTitle: title =>
doc.title = RL_APP_DATA.Title ? (title ? title + ' - ' : '') + RL_APP_DATA.Title : (title ? '' + title : ''),
doc.title = (title || '') + (RL_APP_DATA.Title ? (title ? ' - ' : '') + RL_APP_DATA.Title : ''),
initData: appData => {
RL_APP_DATA = appData;