yoinked commited on
Commit
ff1712e
·
verified ·
1 Parent(s): e422658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -33,7 +33,8 @@ basecss = """
33
  jscode = """
34
 
35
  function copyToClipboard(container) {
36
- const titleElement = container.querySelector(".title");
 
37
  const titleText = titleElement.textContent;
38
  const tempTextArea = document.createElement("textarea");
39
  tempTextArea.value = titleText;
 
33
  jscode = """
34
 
35
  function copyToClipboard(container) {
36
+ if (!container) return; // if container is undefined, do nothing
37
+ const titleElement = container.querySelector(".extra-info-paperid");
38
  const titleText = titleElement.textContent;
39
  const tempTextArea = document.createElement("textarea");
40
  tempTextArea.value = titleText;