(pageBar)
| 5224 | } |
| 5225 | |
| 5226 | runPageBar(pageBar) { |
| 5227 | if (this.curSiteRule.pageBar && this.curSiteRule.pageBar !== 0) { |
| 5228 | try { |
| 5229 | if (typeof this.curSiteRule.pageBar === 'function') { |
| 5230 | this.curSiteRule.pageBar(pageBar); |
| 5231 | } else if (/^pageBar\.className=['"][^'"]*['"];?$/.test(this.curSiteRule.pageBar)) { |
| 5232 | pageBar.className = this.curSiteRule.pageBar.match(/^pageBar\.className=['"]([^'"]*)['"];?$/)[1]; |
| 5233 | } else { |
| 5234 | Function("pageBar",'"use strict";' + this.curSiteRule.pageBar)(pageBar); |
| 5235 | } |
| 5236 | } catch(e) { |
| 5237 | debug(e); |
| 5238 | } |
| 5239 | } |
| 5240 | } |
| 5241 | |
| 5242 | runWait(cb) { |
| 5243 | let checkEval = null, waitTime = 0; |
no test coverage detected