mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update webloader.js
This commit is contained in:
parent
47273e75b8
commit
1efde7737c
|
@ -140,7 +140,7 @@ return {
|
|||
el.charset = "utf-8";
|
||||
document.head.appendChild(el);
|
||||
|
||||
if (typeof(test) === "function") {
|
||||
if (typeof(test) === "function" && typeof(callback) === "function") {
|
||||
// "Time-To-Live: default value is 30 seconds";
|
||||
ttl = (typeof(ttl) == "number" ? ttl : 30000);
|
||||
el.onload = _callback(el, ttl);
|
||||
|
|
Loading…
Reference in New Issue
Block a user