mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 17:21:55 +00:00
14 lines
415 B
JavaScript
14 lines
415 B
JavaScript
define(['test/demoTest', 'test/scenarioTest'], function (demoTest, scenarioTest) {
|
|
var protocol = window.location.protocol;
|
|
if (protocol === 'file:') {
|
|
var match = /\?test_scenario=(\w+)/.exec(window.location.search);
|
|
if (match) {
|
|
scenarioTest.configure(match[1]);
|
|
return true;
|
|
} else {
|
|
demoTest.configure();
|
|
}
|
|
}
|
|
return false;
|
|
});
|