MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / renderTemplate

Function renderTemplate

app/routes/error.js:4–11  ·  view source on GitHub ↗
(controller, error)

Source from the content-addressed store, hash-verified

2
3export default Route.extend({
4 renderTemplate(controller, error) {
5 const errors = ['browser-unsupported', 'filesystem-unavailable'];
6 const name = `errors/${error.message}`;
7
8 if (errors.indexOf(error.message) !== -1) {
9 this.render(name);
10 }
11 },
12});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected