소스 검색

Эксперимент

Book Pauk 4 년 전
부모
커밋
b41d46ac57
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      client/components/Reader/LibsPage/LibsPage.vue
  2. 1 1
      client/index.html.template

+ 3 - 0
client/components/Reader/LibsPage/LibsPage.vue

@@ -67,6 +67,9 @@ const popupCenter = ({url, title, w, h}) => {
     const newWindow = window.open(url, title, 
       `
       scrollbars=yes,
+      location=no,
+      toolbar=yes,
+      menubar=no,
       width=${w / systemZoom}, 
       height=${h / systemZoom}, 
       top=${top}, 

+ 1 - 1
client/index.html.template

@@ -6,7 +6,7 @@
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <meta name="description" content="Браузерная онлайн-читалка книг. Поддерживаются форматы: fb2, html, txt, rtf, doc, docx, pdf, epub, mobi.">
     <meta name="keywords" content="онлайн,читалка,fb2,книги,читать,браузер,интернет">
-    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
+    <meta http-equiv="Content-Security-Policy" content="frame-src http://samlib.ru">
     <script src="/sw-register.js"></script>
   </head>
   <body>