use decoded uri as key

This commit is contained in:
Colin
2021-11-23 22:08:57 +08:00
parent a3645d9fb5
commit 816ac1b143

View File

@@ -41,7 +41,7 @@
repo: 'Colinx-Blog', // The repository of store comments,
owner: 'Colin-XKL',
admin: ['Colin-XKL'],
id: location.pathname, // Ensure uniqueness and length less than 50
id: decodeURI(location.pathname), // Ensure uniqueness and length less than 50
distractionFreeMode: false // Facebook-like distraction free mode
});
gitalk.render('gitalk-container');