File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ window.app = createApp({
395395 } ,
396396 // methods
397397 async retrieveDoc ( _editor , docVar , url ) {
398+ if ( ! url ) return ;
398399 try {
399400 const rv = await fetch ( url ) ;
400401 if ( ! rv . ok ) {
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ <h2 class="ui massive header">JSON-LD Playground</h2>
131131 < div class ="ui icon input ">
132132 < input type ="text " placeholder ="Document URL "
133133 v-model ="remoteDocURL " @keyup.enter ="retrieveDoc(mainEditor, 'doc', remoteDocURL) ">
134- < i class ="file link icon " @click ="retrieveDoc(mainEditor, 'doc', remoteDocURL) "> </ i >
134+ < i class ="file link icon " :class =" { disabled: remoteDocURL == '' } " @click ="retrieveDoc(mainEditor, 'doc', remoteDocURL) "> </ i >
135135 </ div >
136136 </ div >
137137 </ div >
You can’t perform that action at this time.
0 commit comments