Rename the error handlers file at loading time

This commit is contained in:
Jérémie Astori 2017-12-16 18:18:43 -05:00
parent 84db8d8866
commit f975426c61
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
4 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@
connectivity issues. connectivity issues.
</p> </p>
<button id="loading-reload" class="btn">Reload page</button> <button id="loading-reload" class="btn">Reload page</button>
<script async src="js/loading-slow-alert.js"></script> <script async src="js/loading-error-handlers.js"></script>
</div> </div>
</div> </div>
</div> </div>

View File

@ -25,7 +25,7 @@ describe("public folder", function() {
expect(fs.existsSync(path.join(publicFolder, "js", "bundle.js.map"))).to.be.true; expect(fs.existsSync(path.join(publicFolder, "js", "bundle.js.map"))).to.be.true;
}); });
it("loading-slow-alert.js is copied", function() { it("loading-error-handlers.js is copied", function() {
expect(fs.existsSync(path.join(publicFolder, "js", "loading-slow-alert.js"))).to.be.true; expect(fs.existsSync(path.join(publicFolder, "js", "loading-error-handlers.js"))).to.be.true;
}); });
}); });

View File

@ -67,7 +67,7 @@ const config = {
to: "fonts/[name].[ext]", to: "fonts/[name].[ext]",
}, },
{ {
from: "./client/js/loading-slow-alert.js", from: "./client/js/loading-error-handlers.js",
to: "js/[name].[ext]", to: "js/[name].[ext]",
}, },
{ // TODO: Build index.html with handlebars { // TODO: Build index.html with handlebars