We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5804d11 + 1cbc30f commit c7225d2Copy full SHA for c7225d2
dist/index.js
@@ -1,7 +1,7 @@
1
import throttle from 'lodash/throttle';
2
import forIn from 'lodash/forIn';
3
-import cloneDeep from 'lodash/cloneDeep';
4
import set from 'lodash/set';
+const cloneDeep = (obj) => JSON.parse(JSON.stringify(obj));
5
const css = `
6
.live-translator-enable-button {
7
position: fixed !important;
src/index.ts
@@ -1,8 +1,9 @@
import throttle from 'lodash/throttle'
import forIn from 'lodash/forIn'
-import cloneDeep from 'lodash/cloneDeep'
import set from 'lodash/set'
+const cloneDeep = (obj: any) => JSON.parse(JSON.stringify(obj))
+
8
9
0 commit comments