1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 11:13:44 +00:00

Removes logs in utils.

This commit is contained in:
Miles Blackwood
2025-08-25 16:40:44 -04:00
parent 4faac207c2
commit a3f7d34f55

View File

@@ -501,25 +501,6 @@ export function isInvalidResponseStatusCode(statusCode: number) {
* Determines if the current context is within a sandboxed iframe.
*/
export function currentlyInSandboxedIframe(): boolean {
// console.log(
// 'String(self.origin).toLowerCase() === "null"',
// String(self.origin).toLowerCase() === "null",
// self,
// );
// console.log(
// 'globalThis.frameElement?.hasAttribute("sandbox")',
// globalThis.frameElement?.hasAttribute("sandbox"),
// globalThis.frameElement,
// );
// console.log(
// 'globalThis.location.hostname === ""',
// globalThis.location.hostname === "",
// globalThis.location,
// );
// console.log({
// globalThis,
// });
return (
String(self.origin).toLowerCase() === "null" ||
globalThis.frameElement?.hasAttribute("sandbox") ||