-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from MurhafSousli/ng-16
v3.0.1
- Loading branch information
Showing
5 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Changelog | ||
|
||
## 3.0.0 | ||
## 3.0.1 | ||
|
||
- Upgrade to Angular 16 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Injectable, Inject } from '@angular/core'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { DISQUS_SHORTNAME } from './disqus.model'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class DisqusService { | ||
|
||
get DISQUS(): any { | ||
return this.document.defaultView['DISQUS']; | ||
} | ||
|
||
get config(): any { | ||
return this.document.defaultView['disqus_config']; | ||
} | ||
|
||
set config(config: any) { | ||
this.document.defaultView['disqus_config'] = config; | ||
} | ||
|
||
constructor(@Inject(DISQUS_SHORTNAME) public shortname: string, @Inject(DOCUMENT) private document: Document) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters