mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +00:00
Merge pull request #499 from PR0M3TH3AN/codex/refactor-blog.js-for-dynamic-styling-and-setup
Refactor blog entry bootstrap
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -43,10 +43,9 @@
|
||||
<script src="./js/tracking.js" defer></script>
|
||||
<script type="module" crossorigin>
|
||||
import { bootstrapBlog } from "./js/blog/index.js";
|
||||
import { initZapthreadsEmbed } from "./js/blog/zapthreadsEmbed.js";
|
||||
|
||||
const startBlog = () => {
|
||||
bootstrapBlog({ initZapthreadsEmbed });
|
||||
bootstrapBlog();
|
||||
};
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
import { createCarousel, advanceSlide, destroyCarousel } from './carousel.js';
|
||||
import { mountProgressBar } from './progressBar.js';
|
||||
import { initZapthreadsEmbed as defaultInitZapthreadsEmbed } from './zapthreadsEmbed.js';
|
||||
import { applyDynamicStyles } from '../ui/styleSystem.js';
|
||||
|
||||
const CAROUSEL_AUTOPLAY_INTERVAL = 8000;
|
||||
@@ -527,7 +528,7 @@ function initializeZapthreads({ registerCleanup, isDestroyed, initZapthreadsEmbe
|
||||
});
|
||||
}
|
||||
|
||||
function mountBlogApp({ initZapthreadsEmbed } = {}) {
|
||||
function mountBlogApp({ initZapthreadsEmbed = defaultInitZapthreadsEmbed } = {}) {
|
||||
const runtime = {
|
||||
destroyed: false,
|
||||
cleanupCallbacks: new Set(),
|
||||
|
||||
Reference in new issue
Block a user