diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 692bd5838..122534f01 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,6 @@ version: 2 updates: - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "daily" + interval: 'daily' diff --git a/static/assets/scripts/frame.js b/static/assets/scripts/frame.js index 571ae8e33..7dfb1e953 100644 --- a/static/assets/scripts/frame.js +++ b/static/assets/scripts/frame.js @@ -32,6 +32,33 @@ function reload() { } } +function popout() { + const newWindow = window.open('about:blank', '_blank') + + if (newWindow) { + const name = localStorage.getItem('name') || 'My Drive - Google Drive' + const icon = localStorage.getItem('icon') || 'https://ssl.gstatic.com/docs/doclist/images/drive_2022q3_32dp.png' + + newWindow.document.title = name + + const link = newWindow.document.createElement('link') + link.rel = 'icon' + link.href = icon + newWindow.document.head.appendChild(link) + + const newIframe = newWindow.document.createElement('iframe') + const style = newIframe.style + style.position = 'fixed' + style.top = style.bottom = style.left = style.right = 0 + style.border = style.outline = 'none' + style.width = style.height = '100%' + + newIframe.src = iframe.src + + newWindow.document.body.appendChild(newIframe) + } +} + function erudaToggle() { if (!iframe) return diff --git a/static/go.html b/static/go.html index db926b3ba..cd09af7e4 100644 --- a/static/go.html +++ b/static/go.html @@ -14,16 +14,16 @@ @@ -56,7 +64,7 @@ - +