Commit 32c9609
committed
fix: handle case where web URL is http://origin:port/
The previous code for extracting the tracker's TRACKER_WEB setting
didn't account for a missing tracker name component (i.e. tracker is
the root of the site).
Use something a little more robust that generates the base path by
removing last '/' delimited component from the path of the current
document's URL.
This doesn't work if the user deploys the classhelper on the home
page. The page URL must have exactly one component to strip
to get the base URL.1 parent 0e4a99f commit 32c9609
File tree
1 file changed
+2
-2
lines changed1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
| 317 | + | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
0 commit comments