Enable speaker notes when CDN disabled.

This commit is contained in:
David Russell 2017-08-28 13:55:51 +07:00
parent fe53cf81bb
commit 5175f00290
2 changed files with 5 additions and 1 deletions

View File

@ -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) {

View File

@ -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()) {