Skip to content

Commit a06aee9

Browse files
committed
Make SSR friendly, v1.3.2
1 parent a44fc2b commit a06aee9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openeo/processes-docgen",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"author": "openEO Consortium",
55
"contributors": [
66
{
@@ -30,11 +30,10 @@
3030
],
3131
"dependencies": {
3232
"@openeo/js-commons": "^1.4.1",
33-
"@openeo/vue-components": "^2.9.1",
33+
"@openeo/vue-components": "^2.9.2",
3434
"axios": "^0.24.0",
3535
"core-js": "^3.6.5",
36-
"vue": "~2.6.12",
37-
"vue-intersection-observer": "^0.1.9"
36+
"vue": "~2.6.12"
3837
},
3938
"devDependencies": {
4039
"@vue/cli-plugin-babel": "^4.5.4",

src/DocGen.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default {
133133
links: [],
134134
protocol: null,
135135
copied: null,
136-
canCopy: navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
136+
canCopy: false
137137
};
138138
},
139139
watch: {
@@ -171,6 +171,7 @@ export default {
171171
});
172172
this.protocol = window ? window.location.protocol : null;
173173
this.changeDocument();
174+
this.canCopy = navigator && navigator.clipboard && typeof navigator.clipboard.writeText === 'function';
174175
},
175176
methods: {
176177
copyLink(process_id) {

0 commit comments

Comments
 (0)