An IndieWeb engine for a self-hostable website. https://koype.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

page.ts 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @license
  3. * Koype: a IndieWeb-focused, single-tenant website engine for people.
  4. *
  5. * Copyright © 2019 Jacky Alciné <jacky.is@black.af>
  6. *
  7. * This file belongs to the Koype project.
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. *
  22. * @todo Remove leaflet from here.
  23. */
  24. // import { Socket } from 'phoenix'
  25. import * as PhoenixHTML from 'phoenix_html'
  26. window.addEventListener(
  27. 'load',
  28. () => {
  29. try {
  30. PhoenixHTML()
  31. } catch (e) {
  32. }
  33. },
  34. false
  35. )