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:
@@ -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") ||
|
||||
|
||||
Reference in New Issue
Block a user