1
0
mirror of https://github.com/S2-/ejs-render-remote synced 2025-08-02 04:30:04 +02:00

resolve with templateUrl even when we have it already in cache

This commit is contained in:
s2
2019-05-03 10:35:11 +02:00
parent f5a44438d1
commit 94d5afe1a0

View File

@@ -61,7 +61,7 @@
//if the template is already cached, just return.
if (ejs.cache.get(templateUrl)) {
d.resolve();
d.resolve(templateUrl);
} else {
$.get(templateUrl)
.then(function(template) {