[英]Using react dev tools inside iframe [In Chrome]
當 react 應用程序位於 iframe 內時,用於 react 的開發工具 chrome 擴展不起作用。
參考: https : //github.com/facebook/react/issues/18945
開發工具團隊建議的解決方案: https : //github.com/zalmoxisus/redux-devtools-extension/pull/56 。
“將‘all_frames’選項添加到 manifest.json 以允許 DevTools 訪問可能包含商店而不是主頁的 iframe”。
我應該怎么做才能在 iframe 中啟用開發工具。 我應該克隆 devtools 存儲庫( https://github.com/facebook/react/tree/master/packages/react-devtools-extensions#build-steps )並添加 all_frames 選項並使用它嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.