mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: Fix npm lint issues in PasswordLessLoginForm.vue
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
88f57d2edc
commit
0712506c87
1 changed files with 3 additions and 3 deletions
|
|
@ -51,8 +51,8 @@
|
|||
</template>
|
||||
|
||||
<script type="ts">
|
||||
import { browserSupportsWebAuthn } from '@simplewebauthn/browser'
|
||||
import { getBaseUrl } from '@nextcloud/router'
|
||||
import { browserSupportsWebAuthn } from '@simplewebauthn/browser'
|
||||
import { defineComponent } from 'vue'
|
||||
import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent'
|
||||
import NcTextField from '@nextcloud/vue/components/NcTextField'
|
||||
|
|
@ -150,8 +150,8 @@ export default defineComponent({
|
|||
.then(({ defaultRedirectUrl }) => {
|
||||
logger.debug('Logged in redirecting')
|
||||
if (redirectUrl) {
|
||||
if (redirectUrl.charAt(0) !== "/") {
|
||||
redirectUrl = "/" + redirectUrl;
|
||||
if (redirectUrl.charAt(0) !== '/') {
|
||||
redirectUrl = '/' + redirectUrl
|
||||
}
|
||||
window.location.href = getBaseUrl() + redirectUrl
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue