Skip to content

Commit faab401

Browse files
save file
1 parent 2934e15 commit faab401

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

blog/html/blog-hdr/v2.0/blog-hdr-v2.0.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292

9393
obj.init = async function(){
94-
94+
debug('init');
9595
await mod.auto();
9696

9797
obj.pagesource = mod['page-source'];
@@ -113,6 +113,19 @@
113113
//:
114114

115115

116+
function debug(...args){
117+
118+
if(!df && !obj.df)return;
119+
args.unshift(`[ ${did} ]`);
120+
var fmt = Array.from({length:args.length}).fill('%O').join(' ');
121+
var args2 = [fmt].concat(args);
122+
console.groupCollapsed.apply(console,args2);
123+
console.trace();
124+
console.groupEnd();
125+
126+
}//debug
127+
128+
116129
return obj;
117130

118131
})//blog_hdr

0 commit comments

Comments
 (0)