File tree 2 files changed +29
-0
lines changed 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,24 @@ exports._currentScript = function (doc) {
23
23
return doc . currentScript ;
24
24
} ;
25
25
} ;
26
+
27
+ exports . referrer = function ( doc ) {
28
+ return function ( ) {
29
+ return doc . referrer ;
30
+ } ;
31
+ } ;
32
+
33
+ exports . title = function ( doc ) {
34
+ return function ( ) {
35
+ return doc . title ;
36
+ } ;
37
+ } ;
38
+
39
+ exports . setTitle = function ( title ) {
40
+ return function ( doc ) {
41
+ return function ( ) {
42
+ doc . title = title ;
43
+ return { } ;
44
+ } ;
45
+ } ;
46
+ } ;
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ module Web.HTML.HTMLDocument
14
14
, readyState
15
15
, activeElement
16
16
, currentScript
17
+ , referrer
18
+ , title
19
+ , setTitle
17
20
) where
18
21
19
22
import Prelude
@@ -84,3 +87,8 @@ foreign import _currentScript :: HTMLDocument -> Effect (Nullable HTMLScriptElem
84
87
85
88
currentScript :: HTMLDocument -> Effect (Maybe HTMLScriptElement )
86
89
currentScript = map toMaybe <<< _currentScript
90
+
91
+ foreign import referrer :: HTMLDocument -> Effect String
92
+
93
+ foreign import title :: HTMLDocument -> Effect String
94
+ foreign import setTitle :: String -> HTMLDocument -> Effect Unit
You can’t perform that action at this time.
0 commit comments