Browse Source

MINOR (#15): fixing new window issue

dependabot/npm_and_yarn/lodash-4.17.19
Peter Thaleikis 5 years ago
parent
commit
a0d0c9a25b
  1. 2
      src/components/BloggerButton.vue
  2. 2
      src/components/DiggButton.vue
  3. 4
      src/components/EvernoteButton.vue
  4. 4
      src/components/FacebookButton.vue
  5. 4
      src/components/HatenaButton.vue
  6. 4
      src/components/InstapaperButton.vue
  7. 4
      src/components/LinkedInButton.vue
  8. 2
      src/components/LiveJournalButton.vue
  9. 4
      src/components/OdnoklassnikiButton.vue
  10. 4
      src/components/PinterestButton.vue
  11. 4
      src/components/PocketButton.vue
  12. 4
      src/components/RedditButton.vue
  13. 2
      src/components/RenrenButton.vue
  14. 4
      src/components/TumblrButton.vue
  15. 4
      src/components/TwitterButton.vue
  16. 4
      src/components/VkontakteButton.vue
  17. 2
      src/components/WeiboButton.vue
  18. 4
      src/components/XingButton.vue

2
src/components/BloggerButton.vue

@ -57,7 +57,7 @@ export default {
)}`; )}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

2
src/components/DiggButton.vue

@ -43,7 +43,7 @@ export default {
)}`; )}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/EvernoteButton.vue

@ -19,7 +19,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -53,7 +53,7 @@ export default {
)}&title=${encodeURIComponent(this.$props.description)}`; )}&title=${encodeURIComponent(this.$props.description)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/FacebookButton.vue

@ -22,7 +22,7 @@
<span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span> <span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -69,7 +69,7 @@ export default {
)}`; )}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
}, },

4
src/components/HatenaButton.vue

@ -19,7 +19,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -53,7 +53,7 @@ export default {
)}&btitle=${encodeURIComponent(this.$props.description)}`; )}&btitle=${encodeURIComponent(this.$props.description)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/InstapaperButton.vue

@ -19,7 +19,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -53,7 +53,7 @@ export default {
)}&title=${encodeURIComponent(this.$props.description)}`; )}&title=${encodeURIComponent(this.$props.description)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/LinkedInButton.vue

@ -22,7 +22,7 @@
<span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span> <span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -69,7 +69,7 @@ export default {
)}`; )}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
}, },

2
src/components/LiveJournalButton.vue

@ -53,7 +53,7 @@ export default {
)}&subject=${encodeURIComponent(this.$props.url)}`; )}&subject=${encodeURIComponent(this.$props.url)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/OdnoklassnikiButton.vue

@ -22,7 +22,7 @@
<span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span> <span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -69,7 +69,7 @@ export default {
)}&st.comments=${encodeURIComponent(this.$props.description)}`; )}&st.comments=${encodeURIComponent(this.$props.description)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
}, },

4
src/components/PinterestButton.vue

@ -24,7 +24,7 @@
<span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span> <span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -76,7 +76,7 @@ export default {
)}&media=${encodeURIComponent(this.$props.picture)}`; )}&media=${encodeURIComponent(this.$props.picture)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
}, },

4
src/components/PocketButton.vue

@ -18,7 +18,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { getDocumentHref, eventEmit, createWindow } from "../helpers"; import { getDocumentHref, eventEmit, createWindow } from "../helpers";
@ -46,7 +46,7 @@ export default {
)}`; )}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/RedditButton.vue

@ -19,7 +19,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { getDocumentHref, eventEmit, createWindow } from "../helpers"; import { getDocumentHref, eventEmit, createWindow } from "../helpers";
@ -48,7 +48,7 @@ export default {
)}&title=${encodeURIComponent(this.$props.title)}`; )}&title=${encodeURIComponent(this.$props.title)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

2
src/components/RenrenButton.vue

@ -51,7 +51,7 @@ export default {
)}&title=${encodeURIComponent(this.$props.title)}`; )}&title=${encodeURIComponent(this.$props.title)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/TumblrButton.vue

@ -24,7 +24,7 @@
<span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span> <span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -76,7 +76,7 @@ export default {
)}&caption=${encodeURIComponent(this.$props.description)}&posttype=link`; )}&caption=${encodeURIComponent(this.$props.description)}&posttype=link`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
}, },

4
src/components/TwitterButton.vue

@ -19,7 +19,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -53,7 +53,7 @@ export default {
)}&text=${encodeURIComponent(this.$props.description)}`; )}&text=${encodeURIComponent(this.$props.description)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/VkontakteButton.vue

@ -23,7 +23,7 @@
<span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span> <span class="share-button__counter" v-if="hasCounter && counter > 0">{{ shortСounter }}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { import {
@ -77,7 +77,7 @@ export default {
)}&image=${encodeURIComponent(this.$props.sharePic)}&noparse=true`; )}&image=${encodeURIComponent(this.$props.sharePic)}&noparse=true`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
}, },

2
src/components/WeiboButton.vue

@ -59,7 +59,7 @@ export default {
)}&pic=${encodeURIComponent(this.$props.picture)}`; )}&pic=${encodeURIComponent(this.$props.picture)}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

4
src/components/XingButton.vue

@ -18,7 +18,7 @@
<span class="share-button__text" v-if="btnText">{{btnText}}</span> <span class="share-button__text" v-if="btnText">{{btnText}}</span>
</button> </button>
</template> </template>
<script> <script>
import Icon from "./icon/Icon.vue"; import Icon from "./icon/Icon.vue";
import { getDocumentHref, eventEmit, createWindow } from "../helpers"; import { getDocumentHref, eventEmit, createWindow } from "../helpers";
@ -46,7 +46,7 @@ export default {
)}`; )}`;
return this.$props.isBlank return this.$props.isBlank
? window.open(url, "__blank") ? window.open(url, "_blank")
: window.open(url, "Share this", configWindow); : window.open(url, "Share this", configWindow);
} }
} }

Loading…
Cancel
Save