Skip to content

Commit 65a6c3a

Browse files
committed
Always expose sa_pageview
1 parent 3d7ccb5 commit 65a6c3a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/default.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -949,17 +949,17 @@
949949

950950
/** if (or spa hash) **/
951951
if (autoCollect) pageview();
952-
else {
953-
/** if metadata **/
954-
window.sa_pageview = function (path, metadata) {
955-
pageview(0, path, metadata);
956-
};
957-
/** else **/
958-
window.sa_pageview = function (path) {
959-
pageview(0, path);
960-
};
961-
/** endif **/
962-
}
952+
953+
/** if metadata **/
954+
window.sa_pageview = function (path, metadata) {
955+
pageview(0, path, metadata);
956+
};
957+
/** else **/
958+
window.sa_pageview = function (path) {
959+
pageview(0, path);
960+
};
961+
/** endif **/
962+
963963
/** else **/
964964
pageview();
965965
/** endif **/

0 commit comments

Comments
 (0)