Skip to content

Commit

Permalink
Fixed trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrot committed Nov 6, 2021
1 parent a156a56 commit 6bc8d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plausible_analytics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Plausible {
int lastCharIndex = serverUrl.length - 1;
if (serverUrl.toString()[lastCharIndex] == '/') {
// Remove trailing slash '/'
serverUrl = serverUrl.substring(0, lastCharIndex - 1);
serverUrl = serverUrl.substring(0, lastCharIndex);
}
page = "app://localhost/" + page;
referrer = "app://localhost/" + referrer;
Expand Down

0 comments on commit 6bc8d5f

Please sign in to comment.