This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currencies = ['USD', 'pуб.', '¥'] | |
Array.prototype.reduce.call( | |
document.body.querySelectorAll(".wht_total"), | |
(acc, x) => { | |
const rawPrice = x.textContent.trim(); | |
let number = 0; | |
let currency = ''; | |
for (let i = 0; i < currencies.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* VueRouteData plugin for [email protected] and vue@1or2, | |
* implemented according to https://github.com/vuejs/vue-router/issues/296#issuecomment-235481643 | |
* | |
* This plugin looks for `$options.fetchRouteData`, | |
* and watches `$route` using `$options.fetchRouteData` as handler. | |
* | |
* Before `fetchRouteData` executes, this plugin sets 'loadingRouteData' to true, | |
* and when it finishes executing, the plugin sets 'loadingRouteData' to false, | |
* so `fetchRouteData` can either be normal functions or async functions. |