8000 Use location.origin instead of hardcoded domain. · lodash/lodash.com@57360ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 57360ce

Browse files
committed
Use location.origin instead of hardcoded domain.
1 parent 2343104 commit 57360ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ addEventListener('load', function() {
1717
FRM_OPEN + GHB_CLS + GHB_SRC + 'star' + FRM_CLOSE +
1818
FRM_OPEN + GHB_CLS + GHB_SRC + 'fork' + FRM_CLOSE +
1919
FRM_OPEN + TWT_CLS + TWT_FLW + ' ' + TWT_SRC + TWT_FLW + TWT_QRY + 'false&screen_name=bestiejs' + FRM_CLOSE +
20-
FRM_OPEN + TWT_CLS + 'share ' + TWT_SRC + 'tweet' + TWT_QRY + 'true&url=https://lodash.com/&text=' + DSC + FRM_CLOSE
20+
FRM_OPEN + TWT_CLS + 'share ' + TWT_SRC + 'tweet' + TWT_QRY + 'true&url=' + location.origin + '/&text=' + DSC + FRM_CLOSE
2121

2222
var container = document.getElementById('social')
2323
if (navigator.onLine && typeof phantom == 'undefined') {

0 commit comments

Comments
 (0)
0