Skip to content

Commit afb97c8

Browse files
committed
js tweaks
1 parent 94e9de5 commit afb97c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"proseWrap": "never",
3+
"trailingComma": "all"
4+
}

src/js/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export function bind(node) {
1313
}
1414

1515
export function History({ onChange }) {
16-
// Capture changes to the browser's history
16+
// Capture browser "history go back" action and tell the server about it
17+
// Note: Browsers do not allow you to detect "history go forward" actions.
1718
React.useEffect(() => {
1819
const listener = () => {
1920
onChange({

0 commit comments

Comments
 (0)