Skip to content
Snippets Groups Projects
Commit a47d01ed authored by Florent Poittevin's avatar Florent Poittevin
Browse files

perf: provide twitter service as singleton

parent 7eacb815
No related branches found
No related tags found
1 merge request!41632 633 Add home page with rss news and twitter
......@@ -4,7 +4,9 @@ import {WINDOW} from "@app/app.module";
import {TwitterMetadata} from "@app/features/home/models/twitter-metadata.model";
import {Observable} from "rxjs";
@Injectable()
@Injectable({
providedIn: "root",
})
export class TwitterService {
private readonly _TWITTER_SCRIPT_ID: string = "twitter-wjs";
private readonly _TWITTER_WIDGET_URL: string = "https://platform.twitter.com/widgets.js";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment