Skip to content

Commit

Permalink
Prevent an error, if OA_source is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Moritz authored and kai-moritz committed Feb 27, 2013
1 parent 62e73da commit 85b8e0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openx.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@
});
}

src += "&nz=1&source=" + escape(OA_source);
src += "&r=" + Math.floor(Math.random()*99999999);
if (typeof OA_source !== 'undefined')
src += "&source=" + escape(OA_source);
src += "&nz=1&r=" + Math.floor(Math.random()*99999999);
src += "&block=1&charset=UTF-8";

if (window.location) src += "&loc=" + escape(window.location);
Expand Down

0 comments on commit 85b8e0c

Please sign in to comment.