mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix mock load.
This commit is contained in:
parent
2a4ee9cb69
commit
8cf2016028
@ -1,4 +1,3 @@
|
||||
<!-- This is a temporal hack only with the purpose to allow the transition with Spring MVC-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
@ -28,7 +27,7 @@
|
||||
<meta property="og:site_name" content="WiseMapping" />
|
||||
|
||||
<script>
|
||||
if ('<%=CLIENT_TYPE%>' === 'rest');
|
||||
if ('<%=CLIENT_TYPE%>' === 'rest')
|
||||
{
|
||||
window.serverconfig = {
|
||||
apiBaseUrl: 'http://localhost:3000',
|
||||
|
@ -80,9 +80,9 @@ class _AppConfig {
|
||||
}
|
||||
|
||||
buildClient(): Client {
|
||||
const config = this.getInstance();
|
||||
let result: Client;
|
||||
if (config.clientType == 'rest') {
|
||||
if (this.isRestClient()) {
|
||||
const config = this.getInstance();
|
||||
result = new RestClient(this.getBaseUrl());
|
||||
console.log('Service using rest client. ' + JSON.stringify(config));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user