Function
toJsc
(jsurl, jscStatus, jsc2Status, jsfrom)
Source from the content-addressed store, hash-verified
| 2364 | } //isJsCon结束 |
| 2365 | |
| 2366 | function toJsc(jsurl, jscStatus, jsc2Status, jsfrom) { |
| 2367 | if (jscStatus == true || jsc2Status == true) { |
| 2368 | let jsFileName = jsurl.substring(jsurl.lastIndexOf('/') + 1, jsurl.lastIndexOf('.')) |
| 2369 | return (jsurl = jsPre + jsurl + jsSuf.replace(/_yuliu_/, jsFileName).replace(/_js_from_/, jsfrom)) |
| 2370 | } else { |
| 2371 | return jsurl |
| 2372 | } |
| 2373 | } |
| 2374 | |
| 2375 | function shNotify(box) { |
| 2376 | noNtf == false && |
Tested by
no test coverage detected