Commit 939f6334 authored by Mikaël Salson's avatar Mikaël Salson

{app,crossDomain}.js: set a default DB address

So that it can work even without a conf.js (which is the case in our tests for instance)
parent 7c473f93
Pipeline #96761 passed with stages
in 8 minutes and 22 seconds
var DEFAULT_DB_ADDRESS="https://db.vidjil.org/vidjil/";
requirejs.config({
baseUrl: 'js/lib',
paths: {
......@@ -30,6 +32,12 @@ require(["../git-sha1"], function () { console.log("Vidjil client " + git_sha1)
function loadAfterConf() {
if (typeof config === "undefined") {
config = {};
config.db_address = DEFAULT_DB_ADDRESS;
config.use_database = false;
}
require(['../../doctips/tips'],
function(){},
function(err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment