mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Enable speaker notes when CDN disabled.
This commit is contained in:
parent
fe53cf81bb
commit
5175f00290
|
@ -93,6 +93,10 @@ public final class Dependencies {
|
|||
return highlightPluginEnabled;
|
||||
}
|
||||
|
||||
public Boolean cdnDisabled() {
|
||||
return cdn == null;
|
||||
}
|
||||
|
||||
private String build(boolean offline, String libName) {
|
||||
|
||||
if(offline) {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/chart/Chart.min.js"},
|
||||
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/chart/csv2chart.js"},
|
||||
}
|
||||
@if(offline) {
|
||||
@if(deps.cdnDisabled() || offline) {
|
||||
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/notes/notes.js", async: true },
|
||||
}
|
||||
@if(deps.highlightPluginEnabled()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user