itizawa 5 лет назад
Родитель
Сommit
72fb5f4106
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/client/js/components/Page/CopyDropdown.jsx

+ 1 - 0
src/client/js/components/Page/CopyDropdown.jsx

@@ -75,6 +75,7 @@ class CopyDropdown extends React.Component {
   }
 
   generatePermalink() {
+    const { origin } = window.location;
     const { pageId, isShareLinkMode } = this.props;
 
     if (pageId == null) {