fix: warning

This commit is contained in:
shenyu 2020-02-05 11:21:08 +08:00
parent ed5e4803d1
commit 8070697b20

View File

@ -9,6 +9,7 @@
<% if (theme.subtitle.enable){ %> <% if (theme.subtitle.enable){ %>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script>
<script> <script>
try {
var typed = new Typed("#subtitle", { var typed = new Typed("#subtitle", {
strings: ['<%= theme.subtitle.text %>','<%= theme.subtitle.text2 %>','<%= theme.subtitle.text3 %>'], strings: ['<%= theme.subtitle.text %>','<%= theme.subtitle.text2 %>','<%= theme.subtitle.text3 %>'],
startDelay: <%= theme.subtitle.startDelay %>, startDelay: <%= theme.subtitle.startDelay %>,
@ -17,6 +18,9 @@
backSpeed: <%= theme.subtitle.backSpeed %>, backSpeed: <%= theme.subtitle.backSpeed %>,
showCursor: <%= theme.subtitle.showCursor %> showCursor: <%= theme.subtitle.showCursor %>
}); });
} catch (err) {
}
</script> </script>
<% } %> <% } %>