Reduced futami footprint here as well.
This commit is contained in:
parent
5367895f0e
commit
dd52d265e1
9 changed files with 71 additions and 73 deletions
src/ami.js
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue