Skip to content

Commit

Permalink
feat(chat): Add crisp chat to the app
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Nov 19, 2016
1 parent 540572f commit 7162805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@
<plugin name="cordova-plugin-device" spec="~1.1.3" />
<icon src="resources/android/icon/drawable-xhdpi-icon.png" />
<plugin name="cordova-plugin-apprate" spec="~1.2" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />
</widget>
6 changes: 3 additions & 3 deletions src/components/header/header.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {NavController} from 'ionic-angular';
import {Component, ElementRef, Input} from '@angular/core';
import {InAppBrowser} from 'ionic-native';


@Component({
Expand All @@ -11,7 +12,7 @@ export class Header {
@Input()
slogan:string = "slogan";
@Input()
chat: boolean = false;
chat: boolean = true;
@Input()
back:boolean = false;
@Input()
Expand All @@ -24,10 +25,9 @@ export class Header {

onBack(){
this.nav.pop();
console.log("back");
}

onChat(){
console.log("chat");
let browser = new InAppBrowser('https://go.crisp.im/chat/embed/?website_id=-K4rBEcM_Qbt6JrISVzu', '_system');
}
}

0 comments on commit 7162805

Please sign in to comment.