소스 검색

the speaker view presentation URL can be overridden via (needed for reveal.js docs)

hakimel 3 년 전
부모
커밋
e33c3c72f9
3개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 0
      plugin/notes/notes.esm.js
  2. 0 0
      plugin/notes/notes.js
  3. 7 2
      plugin/notes/plugin.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
plugin/notes/notes.esm.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
plugin/notes/notes.js


+ 7 - 2
plugin/notes/plugin.js

@@ -67,13 +67,18 @@ const Plugin = () => {
 		*/
 	function connect() {
 
+		const presentationURL = deck.getConfig().url;
+
+		const url = typeof presentationURL === 'string' ? presentationURL :
+								window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
+
 		// Keep trying to connect until we get a 'connected' message back
 		connectInterval = setInterval( function() {
 			speakerWindow.postMessage( JSON.stringify( {
 				namespace: 'reveal-notes',
 				type: 'connect',
-				url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search,
-				state: deck.getState()
+				state: deck.getState(),
+				url
 			} ), '*' );
 		}, 500 );
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.