| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0e5e8f7 commit 4d2ab81
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ const GREEN = "\x1b[32m%s\x1b[0m"; | |||
| 8 | 8 | const YELLOW = "\x1b[33m%s\x1b[0m"; | |
| 9 | 9 | const RED = "\x1b[31m%s\x1b[0m"; | |
| 10 | 10 | ||
| 11 | - const VERSION = 6; | ||
| 11 | + const VERSION = 7; | ||
| 12 | 12 | ||
| 13 | 13 | Handlebars.registerHelper("or", function (param1, param2) { | |
| 14 | 14 | return param1 || param2; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,13 @@ | |||
| 1 | 1 | /* eslint-env browser */ | |
| 2 | 2 | ||
| 3 | 3 | (function (window, overwriteOptions, baseUrl, apiUrlPrefix, version, saGlobal) { | |
| 4 | - if (!window) return; | ||
| 5 | 4 | try { | |
| 5 | + // Only load our script once, customers can still send multiple page views | ||
| 6 | + // with the sa_pageview function if they turn off auto collect. | ||
| 7 | + var loadedVariable = saGlobal + "_loaded"; | ||
| 8 | + if (!window || window[loadedVariable] === true) return; | ||
| 9 | + window[loadedVariable] = true; | ||
| 10 | + | ||
| 6 | 11 | ///////////////////// | |
| 7 | 12 | // PREDEFINED VARIABLES FOR BETTER MINIFICATION | |
| 8 | 13 | // | |
| Back | FazBrowse Home | New Git URL |
0 commit comments