UNPKG
ohayolibs
Version:
latest (1.0.1)
1.0.1
1.0.0
Ohayo is a set of essential modules for ohayojp.
ohayolibs
/
packages
/
theme
/
src
/
win_tokens.ts
11 lines
(8 loc)
•
256 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
InjectionToken
}
from
'@angular/core'
;
function
WINDOW_FACTORY
(
): any {
return
typeof
window
===
'object'
&& !!
window
?
window
:
null
; }
export
const
WINDOW
=
new
InjectionToken
(
'Window'
, {
providedIn
:
'root'
,
factory
:
WINDOW_FACTORY
, });