File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/addons/addons/ai-integration/helpers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,16 @@ export default class helpers {
182182 <div class="c">
183183 ${ this . FireAnimation }
184184 </div>
185- <p class="d">To use Torchy, please add your API key in the addons page</p></div>
185+ <p class="d">To use Torchy, please add your API key in the <span id="addonsPage"> addons page</span></ p></div>
186186 </div>` ;
187187 document . body . appendChild ( div ) ;
188188 document . getElementById ( 'closePopup' ) . addEventListener ( 'click' , ( ) => {
189189 document . getElementById ( 'torchyPopup' ) . remove ( ) ;
190190 document . AI_INTEGRATION . popupOpen = false ;
191191 } ) ;
192+ document . getElementById ( 'addonsPage' ) . addEventListener ( 'click' , ( ) => {
193+ window . parent . postMessage ( { type : "block-compiler-action" , action : "addonsPage" } , "*" ) ;
194+ } ) ;
192195 }
193196 static returnSterilizedToolbox ( Gaddon , allowExtensions = false ) {
194197 if ( Gaddon == null ) return ;
You can’t perform that action at this time.
0 commit comments