| @@ -142,9 +142,9 @@ | ||
| 142 | 142 | actionCancel.textContent = "×"; |
| 143 | 143 | |
| 144 | 144 | actionConfirm.id = "action-required-confirm"; |
| 145 | 145 | actionConfirm.setAttribute("brand", "vipps"); |
| 146 | - actionConfirm.setAttribute("language", "no"); | |
| 146 | + actionConfirm.setAttribute("language", window.VippsConfig?.webcomponentLanguage); | |
| 147 | 147 | actionConfirm.setAttribute("verb", "continue"); |
| 148 | 148 | actionConfirm.setAttribute("variant", "primary"); |
| 149 | 149 | actionConfirm.setAttribute("type", "button"); |
| 150 | 150 | actionConfirm.setAttribute("branded", "true"); |
| @@ -900,9 +900,9 @@ | ||
| 900 | 900 | ".button.single-product.vipps-buy-now.initialized, " + |
| 901 | 901 | ".vipps-express-checkout:not(body)" |
| 902 | 902 | ); |
| 903 | 903 | |
| 904 | - if (!wrapper || !wrapper.querySelector("vipps-mobilepay-button")) { | |
| 904 | + if (!wrapper) { | |
| 905 | 905 | return; |
| 906 | 906 | } |
| 907 | 907 | |
| 908 | 908 | event.preventDefault(); |