Fixed loading html and js into view
This commit is contained in:
parent
ced63f7ce9
commit
9e83bfec47
6 changed files with 90 additions and 47 deletions
|
@ -1,6 +1,5 @@
|
|||
var tentia_instance;
|
||||
var tentia_cache = {};
|
||||
var OS_TYPE = "mac";
|
||||
|
||||
requirejs.config({
|
||||
baseUrl: 'scripts'
|
||||
|
@ -9,7 +8,6 @@ requirejs.config({
|
|||
function start(view) {
|
||||
|
||||
if (view == "oauth") {
|
||||
|
||||
require(["controller/Oauth"], function(Oauth) {
|
||||
|
||||
tentia_instance = new Oauth();
|
||||
|
@ -75,13 +73,13 @@ function debug(string) {
|
|||
|
||||
function go() { // wait untill everything is loaded
|
||||
setTimeout(function() {
|
||||
|
||||
if (HostAppGo != undefined) {
|
||||
|
||||
|
||||
if (typeof HostAppGo != typeof __not_defined__) {
|
||||
|
||||
HostAppGo();
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
go();
|
||||
|
||||
}
|
||||
|
@ -89,5 +87,4 @@ function go() { // wait untill everything is loaded
|
|||
}, 500);
|
||||
}
|
||||
|
||||
go();
|
||||
|
||||
go();
|
Reference in a new issue