windowExists function fix
This commit is contained in:
parent
68920313c6
commit
e43f387097
2
dist/mailgo.min.js
vendored
2
dist/mailgo.min.js
vendored
File diff suppressed because one or more lines are too long
@ -34,7 +34,13 @@ function js() {
|
|||||||
.pipe(replace("MAILGO_VERSION", version))
|
.pipe(replace("MAILGO_VERSION", version))
|
||||||
.pipe(replace("MAILGO_STYLE", cssMinContent))
|
.pipe(replace("MAILGO_STYLE", cssMinContent))
|
||||||
.pipe(babel())
|
.pipe(babel())
|
||||||
.pipe(uglify())
|
.pipe(
|
||||||
|
uglify({
|
||||||
|
mangle: {
|
||||||
|
keep_fnames: true // keep function names
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
.pipe(
|
.pipe(
|
||||||
rename({
|
rename({
|
||||||
suffix: ".min"
|
suffix: ".min"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// @flow
|
|
||||||
const V = "MAILGO_VERSION";
|
const V = "MAILGO_VERSION";
|
||||||
|
|
||||||
|
// window exists
|
||||||
|
const windowExists = () => window && typeof window !== "undefined";
|
||||||
|
|
||||||
// links
|
// links
|
||||||
const MAILTO = "mailto:";
|
const MAILTO = "mailto:";
|
||||||
const TEL = "tel:";
|
const TEL = "tel:";
|
||||||
@ -813,9 +815,6 @@ const encodeEmail = email => btoa(email);
|
|||||||
// getE shorthand
|
// getE shorthand
|
||||||
const getE = id => document.getElementById(id);
|
const getE = id => document.getElementById(id);
|
||||||
|
|
||||||
// window exists
|
|
||||||
const windowExists = () => window && typeof window !== "undefined";
|
|
||||||
|
|
||||||
// get display value
|
// get display value
|
||||||
const getDisplay = id => getE(id).style.display;
|
const getDisplay = id => getE(id).style.display;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user