mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-24 21:23:21 +00:00
deploy: 1b980de198
This commit is contained in:
1 parent
6f38bfe2d9
commit
6927c3c21b
326 files changed
+5401
-9
No files matched your search
@@ -617,6 +617,27 @@
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
||||
<script type="module">
|
||||
import { init, track } from '/js/page.js';
|
||||
var pageEvents = {
|
||||
domain: 'simplex.chat',
|
||||
endpoint: 'https://api.simplex.chat/api/event',
|
||||
logging: false,
|
||||
outboundLinks: true,
|
||||
transformRequest: function (event) {
|
||||
if (window !== window.top || location.hostname.endsWith('.onion')) return null;
|
||||
if (location.pathname.startsWith('/directory')) event.u = event.u.split('#')[0];
|
||||
// remove hash from outbound links
|
||||
if (event.p && event.p.url) event.p.url = event.p.url.split('#')[0];
|
||||
return event;
|
||||
}
|
||||
};
|
||||
|
||||
init(pageEvents);
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
// switch theme
|
||||
const sunIcon = document.querySelector('.sun');
|
||||
|
||||
Reference in new issue
Block a user