Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit f024729

Browse files
committed
Merge pull request #32 from beckyconning/navigator
Added Navigator
2 parents 2955b94 + cc0b083 commit f024729

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/DOM/HTML/Navigator.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* global exports */
2+
"use strict";
3+
4+
// module DOM.HTML.Navigator
5+
6+
exports.platform = function (navigator) {
7+
return function () {
8+
return navigator.platform;
9+
};
10+
};

src/DOM/HTML/Navigator.purs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module DOM.HTML.Navigator where
2+
3+
import Control.Monad.Eff (Eff())
4+
5+
import DOM
6+
import DOM.HTML.Types
7+
8+
foreign import platform :: forall eff. Navigator -> Eff (dom :: DOM | eff) String

0 commit comments

Comments
 (0)