From 81ce67cc13f204181baf8e2586c2baf43976f292 Mon Sep 17 00:00:00 2001 From: zivmax Date: Fri, 24 Jan 2025 17:40:15 +0800 Subject: [PATCH 1/2] fix: fix error "Uncaught TypeError: $(...).iFrameResize is not a function" --- assets/jekyll-theme-cs50.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/jekyll-theme-cs50.js b/assets/jekyll-theme-cs50.js index 9f2a8b5..0640b01 100644 --- a/assets/jekyll-theme-cs50.js +++ b/assets/jekyll-theme-cs50.js @@ -593,7 +593,7 @@ $(document).on('DOMContentLoaded', function() { // Resize iframes dynamically $('iframe').on('load', function() { - $(this).iFrameResize(); + iFrameResize({}, this); }); // Parse emoji From 197b238db92cf2a5f2d3edec4f8ba871dba611f6 Mon Sep 17 00:00:00 2001 From: zivmax Date: Fri, 24 Jan 2025 17:40:41 +0800 Subject: [PATCH 2/2] fix: replace the deprecated function "iFrameResize" with "iframResize" --- assets/jekyll-theme-cs50.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/jekyll-theme-cs50.js b/assets/jekyll-theme-cs50.js index 0640b01..1aabc69 100644 --- a/assets/jekyll-theme-cs50.js +++ b/assets/jekyll-theme-cs50.js @@ -593,7 +593,7 @@ $(document).on('DOMContentLoaded', function() { // Resize iframes dynamically $('iframe').on('load', function() { - iFrameResize({}, this); + iframeResize({}, this); }); // Parse emoji