diff --git a/assets/apps/sandbox/sandbox.js b/assets/apps/sandbox/sandbox.js index 837c0ced..35e26d0a 100644 --- a/assets/apps/sandbox/sandbox.js +++ b/assets/apps/sandbox/sandbox.js @@ -1,8 +1,6 @@ var mainWindow; var origin; var streamWriter; -var currentPath = ''; -var currentTitle = ''; let msgHandler = function (e) { // You must verify that the origin of the message's sender matches your // expectations. In this case, we're only planning on accepting messages @@ -14,17 +12,6 @@ let msgHandler = function (e) { return; mainWindow = e.source; origin = e.origin; - - let appIFrame = document.getElementById("appSandboxId"); - if (appIFrame != null && appIFrame.contentDocument != null) { - let path = appIFrame.contentDocument.location.pathname; - let title = appIFrame.contentDocument.title; - if (path != null && path != currentPath) { - currentTitle = title; - currentPath = path; - } - } - if (e.data.type == "ping") { mainWindow.postMessage({action:'pong'}, e.origin); } else if (e.data.type == "init") { @@ -32,8 +19,6 @@ let msgHandler = function (e) { e.data.username, e.data.props); } else if(e.data.type == "respondToLoadedChunk") { respondToLoadedChunk(e.data.bytes); - } else if(e.data.type == "currentTitleRequest") { - currentTitleRequest(e); } }; function resizeHandler() { @@ -55,9 +40,6 @@ function actionRequest(filePath, requestId, api, apiMethod, bytes, hasFormData, mainWindow.postMessage({action:'actionRequest', requestId: requestId, filePath: filePath, api: api, apiMethod: apiMethod, bytes: bytes, hasFormData: hasFormData, params: params, isFromRedirect: isFromRedirect, isNavigate: isNavigate}, origin); } -function currentTitleRequest(e) { - e.source.postMessage({action:'currentTitleResponse', path: currentPath, title: currentTitle}, e.origin); -} function load(appName, appPath, allowBrowsing, theme, chatId, username, props) { let that = this; let iframe = document.getElementById("appSandboxId"); diff --git a/assets/images/bookmark-o.svg b/assets/images/bookmark-o.svg new file mode 100644 index 00000000..28a9973d --- /dev/null +++ b/assets/images/bookmark-o.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/assets/images/bookmark.svg b/assets/images/bookmark.svg new file mode 100644 index 00000000..a43e59ea --- /dev/null +++ b/assets/images/bookmark.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/components/sandbox/AppSandbox.vue b/src/components/sandbox/AppSandbox.vue index 78d43e61..3318c6ee 100644 --- a/src/components/sandbox/AppSandbox.vue +++ b/src/components/sandbox/AppSandbox.vue @@ -77,8 +77,12 @@