Reduced futami footprint here as well.

This commit is contained in:
flash 2025-04-21 00:27:49 +00:00
commit dd52d265e1
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
9 changed files with 71 additions and 73 deletions
src/ami.js

View file

@ -1,8 +1,9 @@
#include commitment.js
#include xhr.js
const Flashii = function(baseUrl=null) {
baseUrl ??= window.FII_API;
const Flashii = function(baseUrl) {
if(typeof baseUrl !== 'string')
throw new Error('baseUrl must be a string');
if(baseUrl.indexOf('//') === 0)
baseUrl = window.location.protocol + baseUrl;