a better check of existance of #mailgo and #mailgo-tel in dom
This commit is contained in:
parent
cf8ff056c8
commit
4db5e02372
2
dist/mailgo.dark.min.js
vendored
2
dist/mailgo.dark.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/mailgo.dark.min.js.map
vendored
2
dist/mailgo.dark.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/mailgo.min.js
vendored
2
dist/mailgo.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/mailgo.min.js.map
vendored
2
dist/mailgo.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
extensions/mailgo.chrome.min.js
vendored
2
extensions/mailgo.chrome.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
extensions/mailgo.firefox.min.js
vendored
2
extensions/mailgo.firefox.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -316,9 +316,11 @@ var mailgoInit = function mailgoInit() {
|
||||
|
||||
|
||||
var defaultStrings = translations[DEFAULT_LANG];
|
||||
var strings = translations[lang]; // mailgo tel, if mailgo not already exists
|
||||
var strings = translations[lang]; // mailgo, if mailgo not already exists
|
||||
|
||||
if (!document.getElementById("mailgo")) {
|
||||
var mailgoExists = !!document.getElementById("mailgo");
|
||||
|
||||
if (!mailgoExists) {
|
||||
var _config3, _config4, _config5;
|
||||
|
||||
// modal
|
||||
@ -450,7 +452,9 @@ var mailgoInit = function mailgoInit() {
|
||||
} // mailgo tel, if mailgo-tel not already exists
|
||||
|
||||
|
||||
if (!document.getElementById("mailgo-tel")) {
|
||||
var mailgoTelExists = !!document.getElementById("mailgo-tel");
|
||||
|
||||
if (!mailgoTelExists) {
|
||||
var _config6, _config7, _config8;
|
||||
|
||||
// modal
|
||||
|
File diff suppressed because one or more lines are too long
@ -112,8 +112,10 @@ const mailgoInit = (): void => {
|
||||
let defaultStrings: MailgoTranslation = translations[DEFAULT_LANG];
|
||||
let strings: MailgoTranslation = translations[lang];
|
||||
|
||||
// mailgo tel, if mailgo not already exists
|
||||
if (!document.getElementById("mailgo")) {
|
||||
// mailgo, if mailgo not already exists
|
||||
let mailgoExists = !!document.getElementById("mailgo");
|
||||
|
||||
if (!mailgoExists) {
|
||||
// modal
|
||||
modalMailto = createElement() as HTMLElement;
|
||||
modalMailto.style.display = "none";
|
||||
@ -277,7 +279,9 @@ const mailgoInit = (): void => {
|
||||
}
|
||||
|
||||
// mailgo tel, if mailgo-tel not already exists
|
||||
if (!document.getElementById("mailgo-tel")) {
|
||||
let mailgoTelExists = !!document.getElementById("mailgo-tel");
|
||||
|
||||
if (!mailgoTelExists) {
|
||||
// modal
|
||||
modalTel = createElement() as HTMLElement;
|
||||
modalTel.style.display = "none";
|
||||
|
Loading…
x
Reference in New Issue
Block a user