Skip to content

Commit

Permalink
Version 0.5.2 👾
Browse files Browse the repository at this point in the history
  • Loading branch information
brcontainer committed Jan 22, 2021
1 parent 6155815 commit fbe383b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Guilherme Nascimento
Copyright (c) 2021 Guilherme Nascimento

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion README.html
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ <h3 id="setup">Setup<a class="headerlink" href="#setup" title="Permanent link">
</pre></div>

<p>Or use CDN:</p>
<div class="codehilite"><pre><span class="p">&lt;</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;https://cdn.jsdelivr.net/npm/simple-copy.js@0.4/simple-copy.min.js&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
<div class="codehilite"><pre><span class="p">&lt;</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;https://cdn.jsdelivr.net/npm/simple-copy.js@0.5/simple-copy.min.js&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
</pre></div>

<p>Import:</p>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Include lib
Or use CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/simple-copy.js@0.4/simple-copy.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/simple-copy.js@0.5/simple-copy.min.js"></script>
```

Import:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-copy.js",
"version": "0.5.1",
"version": "0.5.2",
"description": "Copy DOM, textarea or fields values to clipboard, no Flash, only 2.3kB minified (1.14kB gzipped)",
"main": "simple-copy.js",
"scripts": {
Expand Down
10 changes: 5 additions & 5 deletions simple-copy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* simple-copy.js 0.5.1
* simple-copy.js 0.5.2
*
* Copyright (c) 2020 Guilherme Nascimento ([email protected])
* Copyright (c) 2021 Guilherme Nascimento ([email protected])
*
* Released under the MIT license
*/
Expand Down Expand Up @@ -173,9 +173,9 @@

target = d.querySelector(query);

if (!target) return false;

copyElement(target, attr(el, "select"), attr(el, "text"), attr(el, "node"), attr(el, "multiple", true));
if (target) {
copyElement(target, attr(el, "select"), attr(el, "text"), attr(el, "node"), attr(el, "multiple", true));
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions simple-copy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fbe383b

Please sign in to comment.