Commit ad81470a authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Resolve issues with MindsHttpClient

1 merge request!528(feat): Minds Pro
Pipeline #84148382 running with stages
......@@ -12,15 +12,11 @@ export class MindsHttpClient {
origin: string = '';
cookie: Cookie = new Cookie();
static _(http: HttpClient, location: Location, site: SiteService) {
return new MindsHttpClient(http, location, site);
static _(http: HttpClient, site: SiteService) {
return new MindsHttpClient(http, site);
}
constructor(
public http: HttpClient,
public location: Location,
protected site: SiteService
) {
constructor(public http: HttpClient, protected site: SiteService) {
if (this.site.isProDomain) {
this.base = window.Minds.site_url;
this.origin = document.location.host;
......
......@@ -312,7 +312,7 @@ import { SiteService } from './services/site.service';
{
provide: MindsHttpClient,
useFactory: MindsHttpClient._,
deps: [HttpClient],
deps: [HttpClient, SiteService],
},
{
provide: NSFWSelectorCreatorService,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment