Readability changes for curly braces

pull/134/head
Christoph Schmidt 2021-03-17 16:02:38 +01:00
parent c1b1d32965
commit 8fcbcb0a07
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import {api} from './Common/Api'; import { api } from './Common/Api';
import './Manager/App.scss'; import './Manager/App.scss';
declare const OCP: any; declare const OCP: any;
@ -123,7 +123,7 @@ $(() => {
$<HTMLInputElement>('#bbb-shortener [name="app.shortener"]').on('keyup', (ev) => { $<HTMLInputElement>('#bbb-shortener [name="app.shortener"]').on('keyup', (ev) => {
ev.preventDefault(); ev.preventDefault();
const {value} = ev.target; const { value } = ev.target;
if (!value || value.indexOf('https://') !== 0 || value.indexOf('{token}') < 0) { if (!value || value.indexOf('https://') !== 0 || value.indexOf('{token}') < 0) {
$('#bbb-shortener-example').text(t('bbb', 'URL has to start with https:// and contain {token}. Additionally the {user} placeholder can be used.')); $('#bbb-shortener-example').text(t('bbb', 'URL has to start with https:// and contain {token}. Additionally the {user} placeholder can be used.'));