Skip to content

Instantly share code, notes, and snippets.

@jamesmundy
jamesmundy / gist:c73a07cc7276e8e6b32102e9ecb7b063
Created October 3, 2020 13:12
Tawk.to Service for Angular
import { DOCUMENT } from "@angular/common";
import { Inject, Injectable, Renderer2, RendererFactory2 } from "@angular/core";
import { Observable, Subject } from "rxjs";
declare var Tawk_API: any;
@Injectable()
export class TawkService {
private loaded: boolean;