Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/meghna-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorSomrat <monnaf37@gmail.com>2019-01-10 11:29:31 +0300
committerSomrat <monnaf37@gmail.com>2019-01-10 11:29:31 +0300
commit81351c5df4400b892cdb25e7600f6332ec7e62a2 (patch)
tree8f2f1f59ae00fa451c81496723e05d8cafa64e88 /assets
parentd96fd22dddacf444fdd826a54ddbac9d0ff2069e (diff)
parent81ff0af42008e21a99a8eed470134ff5bb8247f1 (diff)
resolve conflict
Diffstat (limited to 'assets')
-rw-r--r--assets/js/script.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/assets/js/script.js b/assets/js/script.js
index 246874a..4483b4b 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -63,7 +63,8 @@ jQuery(function ($) {
/* Portfolio Filtering Hook
/* ========================================================================= */
- var mixer = mixitup('.portfolio-items-wrapper');
+ if ($('.portfolio-items-wrapper').length)
+ mixitup('.portfolio-items-wrapper');
/* ========================================================================= */
/* Testimonial Carousel
@@ -305,4 +306,6 @@ function initialize() {
map.setMapTypeId('roadatlas');
}
-google.maps.event.addDomListener(window, "load", initialize); \ No newline at end of file
+// Check init google maps only if "google" has been defined.
+if("google" in window)
+ google.maps.event.addDomListener(window, "load", initialize); \ No newline at end of file