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h3poteto/megalodon
megalodon
/
lib
/
esm
/
default.js
12 lines
(11 loc)
•
292 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
const
NO_REDIRECT
=
'urn:ietf:wg:oauth:2.0:oob'
;
export
const
DEFAULT_SCOPE
= [
'read'
,
'write'
,
'follow'
];
export
const
DEFAULT_UA
=
'megalodon'
;
export
function
isBrowser
(
) {
if
(
typeof
window
!==
'undefined'
) {
return
true
; }
else
{
return
false
; } }