Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[content-loader.js] Content has not been loaded on load event #297

Closed
t2ym opened this issue Jun 2, 2019 · 0 comments
Closed

[content-loader.js] Content has not been loaded on load event #297

t2ym opened this issue Jun 2, 2019 · 0 comments

Comments

@t2ym
Copy link
Owner

t2ym commented Jun 2, 2019

[content-loader.js] Content has not been loaded on load event

Root Cause

Fix

diff --git a/demo/hook-callback.js b/demo/hook-callback.js
index 3bdd13e..e5fbcb1 100644
--- a/demo/hook-callback.js
+++ b/demo/hook-callback.js
@@ -2061,6 +2061,9 @@ Copyright (c) 2017, 2018, Tetsuya Mori <t2y3141592@gmail.com>. All rights reserv
                            onloadAttribute.startsWith('let iframe = this; fetch(new Request('))) {
                         hookArgs[2][1][0] = 'srcdoc-load';
                       }
+                      if (hook.parameters.scriptHashes && normalizedThisArg.src.startsWith(hook.parameters.emptyDocumentUrl.href)) {
+                        hookArgs[2][1][0] = 'srcdoc-load';
+                      }
                     }
                   }
                 }
t2ym added a commit that referenced this issue Jun 2, 2019
@t2ym t2ym closed this as completed in f503b56 Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant