@@ -258,6 +258,11 @@ async function create_app(title, source_path = null, items = null) {
258
258
maximizeOnStart : false ,
259
259
background : false ,
260
260
dedupeName : true ,
261
+ metadata : {
262
+ window_resizable : true ,
263
+ credentialless : true ,
264
+ } ,
265
+
261
266
} )
262
267
. then ( async ( app ) => {
263
268
let app_dir ;
@@ -568,6 +573,13 @@ function generate_edit_app_section(app) {
568
573
<p>When locked, the app cannot be deleted. This is useful to prevent accidental deletion of important apps.</p>
569
574
</div>
570
575
576
+ <h3 style="border-bottom: 1px solid #EEE; margin-top: 50px; margin-bottom: 0px;">Advanced</h3>
577
+ <div style="margin-top:30px;">
578
+ <input type="checkbox" id="edit-app-credentialless" name="edit-app-credentialless" value="true" ${ ( app . metadata ?. credentialless === true || app . metadata === undefined || app . metadata . credentialless === undefined ) ? 'checked' : '' } >
579
+ <label for="edit-app-credentialless" style="display: inline;">Credentialless</label>
580
+ <p><code>credentialless</code> attribute for the <code>iframe</code> tag.</p>
581
+ </div>
582
+
571
583
<hr style="margin-top: 40px;">
572
584
<button type="button" class="edit-app-save-btn button button-primary">Save</button>
573
585
</form>
@@ -962,6 +974,7 @@ $(document).on('click', '.edit-app-save-btn', async function (e) {
962
974
window_resizable : $ ( '#edit-app-window-resizable' ) . is ( ":checked" ) ,
963
975
hide_titlebar : $ ( '#edit-app-hide-titlebar' ) . is ( ":checked" ) ,
964
976
locked : $ ( `#edit-app-locked` ) . is ( ":checked" ) ?? false ,
977
+ credentialless : $ ( `#edit-app-credentialless` ) . is ( ":checked" ) ?? true ,
965
978
} ,
966
979
filetypeAssociations : filetype_associations ,
967
980
} ) . then ( async ( app ) => {
0 commit comments