-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcmspre.js
More file actions
23 lines (23 loc) · 729 Bytes
/
Copy pathcmspre.js
File metadata and controls
23 lines (23 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let obj = {
// 模板:'https://gitcode.net/qq_32394351/dr/-/raw/master/js/zyw.js',
模板:'https://gitcode.net/qq_32394351/dr/-/raw/master/js/zyw.js',
};
ua = (typeof (ua) !== 'undefined' && ua) ? ua :'';
type = (typeof (type) !== 'undefined' && type) ? type :'';
jm = (typeof (jm) !== 'undefined' && jm) ? jm :'';
debug = (typeof (debug) !== 'undefined' && debug) ? debug :'';
timeout = (typeof (timeout) !== 'undefined' && timeout && !!Number(timeout)) ? timeout :'5000';
if(ua){
Object.assign(obj,{ua:ua});
}
if(type){
Object.assign(obj,{type:type});
}
if(jm){
Object.assign(obj,{jm:jm});
}
if(debug){
Object.assign(obj,{debug:true});
}
Object.assign(obj,{timeout:parseInt(timeout)});
initConfig(obj);