Skip to content

Commit

Permalink
Clean up the initialization script.
Browse files Browse the repository at this point in the history
  • Loading branch information
metatoaster committed May 22, 2017
1 parent 2afb594 commit eb36891
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/nunja/serve/rjs.py
Expand Up @@ -19,13 +19,11 @@

logger = logging.getLogger(__name__)

# XXX the provided names, along with the init template, should be
# deferred to some upstream helper specific to the current module
# framework that is being used.
default_init_script = """'use strict';
window.addEventListener("load", function(event) {
require(['nunja/core'], function(core) {
console.log('loaded');
core.engine.do_onload(document.body);
});
});
require(['nunja/index'], function() {});
"""


Expand Down

0 comments on commit eb36891

Please sign in to comment.