Skip to content

Commit f7c94ea

Browse files
committed
Prevented photos script from running incorrectly
1 parent 15460eb commit f7c94ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/photos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function() {
2-
if (window.location.href.indexOf('photos') !== -1) {
2+
if (window.location.href.match(/photos$/)) {
33
domready(function() {
44
var createImage = function(i, g) {
55
var thephoto = document.createElement('img');

0 commit comments

Comments
 (0)