Run in embed mode when integrated into another tool

This commit is contained in:
Wolfgang Ginolas 2023-05-31 15:36:39 +02:00
parent cf09678526
commit 870a91d8fe

View file

@ -683,7 +683,7 @@ define([
feedbackAllowed: Utils.Feedback.state,
prefersDriveRedirect: Utils.LocalStore.getDriveRedirectPreference(),
isPresent: parsed.hashData && parsed.hashData.present,
isEmbed: parsed.hashData && parsed.hashData.embed,
isEmbed: parsed.hashData && parsed.hashData.embed || cfg.integration,
isTop: window.top === window,
canEdit: Boolean(hashes && hashes.editHash),
oldVersionHash: parsed.hashData && parsed.hashData.version < 2, // password