mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: set window.name in excalidraw app & also support target for excalidraw libraries (#3299)
* feat: set window.name in excalidraw app so library installation always opens on same tab & also support target for excalidraw libraries * update changelog and readme * Update public/index.html Co-authored-by: David Luzar <luzar.david@gmail.com> * use level 4 heading * Update src/packages/excalidraw/README.md Co-authored-by: David Luzar <luzar.david@gmail.com> Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
981f327b48
commit
7ee8de0a46
4 changed files with 10 additions and 5 deletions
|
@ -176,7 +176,9 @@ const LibraryMenuItems = ({
|
|||
</>
|
||||
)}
|
||||
<a
|
||||
href={`https://libraries.excalidraw.com?referrer=${referrer}`}
|
||||
href={`https://libraries.excalidraw.com?target=${
|
||||
window.name || "_blank"
|
||||
}&referrer=${referrer}`}
|
||||
target="_excalidraw_libraries"
|
||||
>
|
||||
{t("labels.libraries")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue