| | @@ -1467,17 +1467,12 @@ |
| 1467 | 1467 | "name:\"%T\"" |
| 1468 | 1468 | "};\n", g.zPath); |
| 1469 | 1469 | CX("})();\n"); |
| 1470 | 1470 | /* The remaining fossil object bootstrap code is not dependent on |
| 1471 | 1471 | ** C-runtime state... */ |
| 1472 | | - if(asInline){ |
| 1473 | | - CX("%s\n", builtin_text("fossil.bootstrap.js")); |
| 1474 | | - } |
| 1475 | 1472 | style_emit_script_tag(1,0); |
| 1476 | | - if(asInline==0){ |
| 1477 | | - style_emit_script_builtin(0, "fossil.bootstrap.js"); |
| 1478 | | - } |
| 1473 | + builtin_request_js("fossil.bootstrap.js"); |
| 1479 | 1474 | } |
| 1480 | 1475 | } |
| 1481 | 1476 | |
| 1482 | 1477 | /* |
| 1483 | 1478 | ** If passed 0 as its first argument, it emits a script opener tag |
| | @@ -1506,29 +1501,5 @@ |
| 1506 | 1501 | } |
| 1507 | 1502 | }else{ |
| 1508 | 1503 | CX("</script>\n"); |
| 1509 | 1504 | } |
| 1510 | 1505 | } |
| 1511 | | - |
| 1512 | | -/* |
| 1513 | | -** Emits a script tag which uses content from a builtin script file. |
| 1514 | | -** |
| 1515 | | -** If asInline is true, it is emitted directly as an opening tag, the |
| 1516 | | -** content of the zName builtin file, and a closing tag. |
| 1517 | | -** |
| 1518 | | -** If it is false, a script tag loading it via |
| 1519 | | -** src=builtin/{{zName}}?cache=XYZ is emitted, where XYZ is a |
| 1520 | | -** build-time-dependent cache-buster value. |
| 1521 | | -*/ |
| 1522 | | -void style_emit_script_builtin(int asInline, char const * zName){ |
| 1523 | | - if(asInline){ |
| 1524 | | - style_emit_script_tag(0,0); |
| 1525 | | - CX("%s", builtin_text(zName)); |
| 1526 | | - style_emit_script_tag(1,0); |
| 1527 | | - }else{ |
| 1528 | | - char * zFullName = mprintf("builtin/%s",zName); |
| 1529 | | - const char * zHash = fossil_exe_id(); |
| 1530 | | - CX("<script src='%R/%T?cache=%.8s'></script>\n", |
| 1531 | | - zFullName, zHash); |
| 1532 | | - fossil_free(zFullName); |
| 1533 | | - } |
| 1534 | | -} |
| 1535 | 1506 | |