wireapp / wire-webapp

👽 Wire for web
https://app.wire.com
GNU General Public License v3.0
1.13k stars 290 forks source link

Web app not loading in Firefox 50 on Linux #1140

Closed n1trux closed 7 years ago

n1trux commented 7 years ago

The web app is only showing a loading bar and the browser console tells me

Successfully compiled asm.js code (loaded from cache in 7ms) wire-vendor.min.js
SyntaxError: missing = in const declaration wire-app.min.js:1:23467

Code line in question:

"use strict";(function(){null==window.z&&(window.z={}),null==z.util&&(z.util={}),z.util.ArrayUtil={chunk:function(a,b){var c,d;for(c=[],d=Array.from(a);d.length;)c.push(d.splice(0,b));return c},find_closest:function(a,b){var c;return c=a[0],a.forEach(function(a){if(b>=a)return c=a}),c},get_next_item:function(a,b,c){var d,e,f,g,h,i,j;if(f=a.indexOf(b),h=f+1,-1===f)return null;if(h===a.length&&f>0)return a[f-1];if(!(h>=a.length))for(e=g=i=h,j=a.length;i<=j?g<=j:g>=j;e=i<=j?++g:--g)if(d=a[e],null==c||c(d))return d},interpolate:function(a,b){var c,d,e,f,g,h,i,j,k;for(g=[],k=(a.length-1)/(b-1),g[0]=a[0],g[b-1]=a[a.length-1],e=f=1,j=b-1;1<=j?f<j:f>j;e=1<=j?++f:--f)h=e*k,d=Math.floor(h).toFixed(),c=Math.ceil(h).toFixed(),i=h-d,g[e]=a[d]+(a[c]-a[d])*i;return g},is_last_item:function(a,b){return a.indexOf(b)===a.length-1},iterate_index:function(a,b){if(_.isArray(a)&&_.isNumber(b)&&a.length)return(b+1)%a.length},random_element:function(a){return null==a&&(a=[]),a[Math.floor(Math.random()*a.length)]},remove_element:function(a,b){var c;if(null==a&&(a=[]),(c=a.indexOf(b))>-1)return a.splice(c,1)}}}).call(this),function(){z.util.Crypto=function(){var a;return a={},a.joaat_hash=function(a){var b,c,d,e,f,g;for(g=window.uint32,b=g.toUint32(0),e=a.toLowerCase(),c=d=0,f=e.length-1;0<=f?d<=f:d>=f;c=0<=f?++d:--d)b=g.addMod32(b,g.toUint32(e.charCodeAt(c))),b=g.addMod32(b,g.shiftLeft(b,10)),b=g.xor(b,g.shiftRight(b,6));return b=g.addMod32(b,g.shiftLeft(b,3)),b=g.xor(b,g.shiftRight(b,11)),b=g.addMod32(b,g.shiftLeft(b,15))},{Hashing:a}}()}.call(this),function(){var a=function(a,b){return function(){return a.apply(b,arguments)}};null==window.z&&(window.z={}),null==z.util&&(z.util={}),z.util.DebugUtil=function(){function b(b,c){this.user_repository=b,this.conversation_repository=c,this.get_v2_call_participants=a(this.get_v2_call_participants,this),this.get_notifications_from_stream=a(this.get_notifications_from_stream,this),this.get_notification_from_stream=a(this.get_notification_from_stream,this),this.get_event_info=a(this.get_event_info,this),this.get_number_of_clients_in_conversation=a(this.get_number_of_clients_in_conversation,this),this.logger=new z.util.Logger("z.util.DebugUtil",z.config.LOGGER.OPTIONS)}return b.prototype.block_all_connections=function(){var a;return a=[],wire.app.repository.user.users().forEach(function(b){return function(c){return a.push(b.user_repository.block_user(c))}}(this)),Promise.all(a)},b.prototype.break_session=function(a,b){var c;return c=a+"@"+b,wire.app.repository.cryptography.cryptobox.session_load(c).then(function(a){var b;return a.session.session_states={},b={created:Date.now(),id:c,serialised:a.session.serialise(),version:"broken_by_qa"},wire.app.repository.storage.storage_service.save(z.storage.StorageService.prototype.OBJECT_STORE_SESSIONS,c,b)}).then(function(a){return function(b){return a.logger.log("Corrupted Session ID '"+b+"'")}}(this))},b.prototype.get_number_of_clients_in_conversation=function(){var a,b,c;return c=this.conversation_repository.active_conversation().participating_user_ets(),b=c.map(function(a){return a.devices().length}).reduce(function(a,b){return a+b}),a=this.user_repository.self().devices().length,b+a},b.prototype.get_event_info=function(a){var b;return b={event:a},this.conversation_repository.get_conversation_by_id_async(a.conversation).then(function(c){return function(d){return b.conversation=d,c.user_repository.get_user_by_id(a.from)}}(this)).then(function(a){return function(c){var d;return b.user=c,d="Hey "+a.user_repository.self().name()+", this is for you:",a.logger.warn(d,b),a.logger.warn("Conversation: "+b.conversation.name(),b.conversation),a.logger.warn("From: "+b.user.name(),b.user),b}}(this))},b.prototype.get_serialised_session=function(a){return wire.app.repository.storage.storage_service.load("sessions",a).then(function(a){var b;return b=z.util.array_to_base64(a.serialised),a.serialised=b,a})},b.prototype.get_serialised_identity=function(){return wire.app.repository.storage.storage_service.load("keys","local_identity").then(function(a){var b;return b=z.util.array_to_base64(a.serialised),a.serialised=b,a})},b.prototype.get_notification_from_stream=function(a,b){var c,d;return d=wire.app.repository.client.current_client().id,c=function(b){return function(c){var d,e,f,g;return d=c.has_more,g=c.notifications,f=g.filter(function(b){return b.id===a}),f.length?f[0]:d?(e=g[g.length-1],b.get_notification_from_stream(a,e.id)):b.logger.log("Notification '"+a+"' was not found in encrypted notification stream")}}(this),wire.app.service.notification.get_notifications(d,b,1e4).then(c)},b.prototype.get_notifications_from_stream=function(a,b,c,d){var e,f,g,h;return null==c&&(c=[]),g=wire.app.repository.client.current_client().id,h=wire.app.repository.user.self().id,e=function(d){return function(e){var f,i,j,k;return i=e.has_more,k=e.notifications,f=k.filter(function(c){var d,e,f,i,j,k,l,m,n,o;for(l=c.payload,f=0,j=l.length;f<j;f++)if(n=l[f],d=n.data,e=n.from,d&&(e===h||e===a))return o=d.sender,m=d.recipient,i=o===b&&m===g,k=o===g&&m===b,i||k;return!1}),c=c.concat(f),i?(j=k[k.length-1],d.get_notifications_from_stream(a,b,c,j.id)):(d.logger.log("Found '"+c.length+"' notification between '"+g+"' and '"+b+"'",c),c)}}(this),f=a===h?void 0:g,wire.app.service.notification.get_notifications(f,d,1e4).then(e)},b.prototype.get_objects_for_decryption_errors=function(a,b){return Promise.all([this.get_notification_from_stream(b),this.get_serialised_identity(),this.get_serialised_session(a)]).then(function(a){return JSON.stringify({notification:a[0],identity:a[1],session:a[2]})})},b.prototype.get_info_for_client_decryption_errors=function(a,b){return Promise.all([this.get_notifications_from_stream(a,b),this.get_serialised_identity(),this.get_serialised_session(a+"@"+b)]).then(function(a){return JSON.stringify({notifications:a[0],identity:a[1],session:a[2]})})},b.prototype.get_v2_call_participants=function(a){return null==a&&(a=wire.app.repository.conversation.active_conversation().id),wire.app.service.call.get_state(a).then(function(b){return function(c){var d,e,f,g,h,i,j;h=[],i=c.participants;for(e in i)g=i[e],g.state===z.calling.enum.ParticipantState.JOINED&&h.push(wire.app.repository.user.get_user_by_id(e));for(b.logger.debug("Call in '"+a+"' has '"+h.length+"' joined participant/s",h),j=[],d=0,f=h.length;d<f;d++)g=h[d],j.push(b.logger.log("User '"+g.name()+"' with ID '"+g.id+"' is joined"));return j}}(this))},b.prototype.log_connection_status=function(){return this.logger.log("Online Status"),this.logger.log("-- Browser online: "+window.navigator.onLine),this.logger.log("-- IndexedDB open: "+wire.app.repository.storage.storage_service.db.isOpen()),this.logger.log("-- WebSocket ready state: "+window.wire.app.service.web_socket.socket.readyState)},b}()}.call(this),function(){z.util.emoji=function(){var a,b,c,d,e;return a=/\ud83c[\udf00-\udfff]|\ud83d[\udc00-\udeff]|\ud83e[\udd10-\uddff]|[\u231a-\u27ff][\ufe0f]?/g,c=function(a){return _.isString(a)&&a.length>0},d=function(b){return b.replace(a,"")},e=function(a){return a.replace(/\s/g,"")},b=function(a){return c(a)&&0===d(e(a)).length},{includes_only_emojies:b}}()}.call(this),function(){var a,b,c;null==window.z&&(window.z={}),null==z.util&&(z.util={}),a={LOCALHOST:"localhost",PRODUCTION:"app.wire.com",PROD_NEXT:"wire-webapp-prod-next.wire.com",VIRTUAL_HOST:"wire.ms"},b={CHROME:"Chrome",EDGE:"Microsoft Edge",ELECTRON:"Electron",FIREFOX:"Firefox",OPERA:"Opera"},c={MACINTOSH:"Mac",WINDOWS:"Win"},z.util.Environment=function(){var d,e,f,g,h,i;return d={is_chrome:function(){return platform.name===b.CHROME},is_edge:function(){return platform.name===b.EDGE},is_firefox:function(){return platform.name===b.FIREFOX},is_opera:function(){return platform.name===b.OPERA},is_electron:function(){return navigator.userAgent.includes(b.ELECTRON)},get_version:function(){var a;return window.parseInt(null!=(a=platform.version)?a.split(".")[0]:void 0,10)},supports_notifications:function(){return void 0!==window.Notification&&(void 0!==window.Notification.requestPermission&&void 0!==document.visibilityState)},supports_audio_output_selection:function(){return this.is_chrome()},supports_calling:function(){return!!this.supports_media_devices()&&(void 0!==window.WebSocket&&(!this.is_edge()&&(!!(this.is_firefox()&&this.get_version()>=52)||(this.is_chrome()||this.is_opera()))))},supports_media_devices:function(){var a;return!(null==(a=navigator.mediaDevices)||!a.getUserMedia)},supports_screen_sharing:function(){return!!window.desktopCapturer||this.is_firefox()}},g={is_mac:function(){return navigator.platform.includes(c.MACINTOSH)},is_windows:function(){return navigator.platform.includes(c.WINDOWS)}},h=g.is_mac()?"os-mac":"os-pc",i=d.is_electron()?"platform-electron":"platform-web",$(document.body).addClass(h+" "+i),e=function(){return null!=$("[property='wire:version']").attr("version")?$("[property='wire:version']").attr("version").trim():""},f=function(){var a;return a=e().split("-"),a[0]+"."+a[1]+"."+a[2]+"."+a[3]+a[4]},{backend:{account_url:function(){return z.util.Environment.backend.current===z.service.BackendEnvironment.PRODUCTION?z.config.ACCOUNT_PRODUCTION_URL:z.config.ACCOUNT_STAGING_URL},current:void 0,website_url:function(){return z.util.Environment.backend.current===z.service.BackendEnvironment.PRODUCTION?z.config.WEBSITE_PRODUCTION_URL:z.config.WEBSITE_STAGING_URL}},frontend:{is_localhost:function(){var b;return(b=window.location.hostname)===a.LOCALHOST||b===a.VIRTUAL_HOST},is_production:function(){var b;return(b=window.location.hostname)===a.PRODUCTION||b===a.PROD_NEXT}},browser:{name:platform.name,version:d.get_version(),chrome:d.is_chrome(),edge:d.is_edge(),firefox:d.is_firefox(),opera:d.is_opera(),supports:{audio_output_selection:d.supports_audio_output_selection(),calling:d.supports_calling(),media_devices:d.supports_media_devices(),notifications:d.supports_notifications(),screen_sharing:d.supports_screen_sharing()}},os:{linux:!g.is_mac()&&!g.is_windows(),mac:g.is_mac(),win:g.is_windows()},electron:d.is_electron(),version:function(a,b){return null==a&&(a=!0),null==b&&(b=!1),z.util.Environment.frontend.is_localhost()?"dev":b?e():window.electron_version&&a?window.electron_version:f()}}}()}.call(this),function(){null==window.z&&(window.z={}),null==z.util&&(z.util={}),window.LOG=function(){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log.apply(console,arguments):void 0},z.util.dummy_image=function(a,b){return"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 "+a+" "+b+"' width='"+a+"' height='"+b+"'></svg>"},z.util.is_same_location=function(a,b){return""!==a&&b.startsWith(a)},z.util.load_image=function(a){return new Promise(function(b,c){var d,e;return e=window.URL.createObjectURL(a),d=new Image,d.onload=function(){return b(this),window.URL.revokeObjectURL(e)},d.onerror=c,d.src=e})},z.util.load_file_buffer=function(a){return new Promise(function(b,c){var d;return d=new FileReader,d.onload=function(){return b(this.result)},d.onerror=c,d.readAsArrayBuffer(a)})},z.util.load_url_buffer=function(a,b){return new Promise(function(c,d){var e;return e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){return 200===e.status?c([e.response,e.getResponseHeader("content-type")]):d(new Error("Requesting arraybuffer failed with status "+e.status))},e.onerror=d,"function"==typeof b&&b(e),e.send()})},z.util.load_url_blob=function(a){return z.util.load_url_buffer(a).then(function(a){var b,c;return b=a[0],c=a[1],new Blob([new Uint8Array(b)],{type:c})})},z.util.append_url_parameter=function(a,b){var c;return c=z.util.StringUtil.includes(a,"?")?"&":"?",""+a+c+b},z.util.forward_url_parameter=function(a,b){var c;return c=z.util.get_url_parameter(b),null!=c?a=z.util.append_url_parameter(a,b+"="+c):a},z.util.get_url_parameter=function(a){var b,c,d,e,f;for(e=window.location.search.substring(1).split("&"),b=0,c=e.length;b<c;b++)if(d=e[b],f=d.split("="),f[0]===a)return!f[1]||"false"!==(f=unescape(f[1]))&&("true"===f||f);return null},z.util.get_file_extension=function(a){return a.includes(".")?a.includes("tar.gz")?"tar.gz":a.substr(a.lastIndexOf(".")+1):""},z.util.trim_file_extension=function(a){return a=a.replace(".tar.gz",""),a.replace(/\.[^\/.]+$/,"")},z.util.format_bytes=function(a,b){var c,d,e;return 0===a?"0B":(d=1024,b=b+1||2,e=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],c=Math.floor(Math.log(a)/Math.log(d)),parseFloat((a/Math.pow(d,c)).toFixed(b))+e[c])},z.util.format_seconds=function(a){var b,c,d,e,f,g;return a=Math.round(a||0),e=Math.floor(a/3600),c=a%3600,f=Math.floor(c/60),d=c%60,g=Math.ceil(d),b=[z.util.zero_padding(f),z.util.zero_padding(g)],e>0&&b.unshift(e),b.join(":")},z.util.format_milliseconds_short=function(a){var b;switch(b=Math.floor(a/1e3),!1){case!(b<60):return[b,"s"];case!(b<3600):return[Math.floor(b/60),"m"];case!(b<86400):return[Math.floor(b/60/60),"h"];default:return[Math.floor(b/60/60/24),"d"]}},z.util.get_content_type_from_data_url=function(a){return a.split(",")[0].split(":")[1].split(";")[0]},z.util.strip_data_uri=function(a){return a.replace(/^data:.*,/,"")},z.util.base64_to_array=function(a){return sodium.from_base64(z.util.strip_data_uri(a))},z.util.array_to_base64=function(a){return sodium.to_base64(new Uint8Array(a),!0)},z.util.array_to_md5_base64=function(a){var b;return b=CryptoJS.lib.WordArray.create(a),CryptoJS.MD5(b).toString(CryptoJS.enc.Base64)},z.util.base64_to_blob=function(a){var b,c;return c=z.util.get_content_type_from_data_url(a),b=z.util.base64_to_array(a),new Blob([b],{type:c})},z.util.download_blob=function(a,b){var c,d;return d=window.URL.createObjectURL(a),c=document.createElement("a"),document.body.appendChild(c),c.href=d,c.download=b,c.style="display: none",c.click(),window.setTimeout(function(){return document.body.removeChild(c),window.URL.revokeObjectURL(d)},100)},z.util.phone_number_to_e164=function(a,b){return window.PhoneFormat.formatE164((""+b).toUpperCase(),""+a)},z.util.create_random_uuid=function(){return UUID.genV4().hexString},z.util.get_random_int=function(a,b){return a=Math.ceil(a),b=Math.floor(b),Math.floor(Math.random()*(b-a)+a)},z.util.encode_base64=function(a){return window.btoa(a)},z.util.encode_sha256_base64=function(a){return CryptoJS.SHA256(a).toString(CryptoJS.enc.Base64)},z.util.escape_html=function(a){return _.escape(a)},z.util.escape_regex=function(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},z.util.alias={animationend:"transitionend animationend oAnimationEnd MSAnimationEnd mozAnimationEnd webkitAnimationEnd"},z.util.add_blank_targets=function(a){return(""+a).replace(/rel="nofollow"/gi,'target="_blank" rel="nofollow noopener noreferrer"')},z.util.add_http=function(a){return a.match(/^http[s]?:\/\//i)||(a="http://"+a),a},z.util.safe_window_open=function(a,b){var c;return null==b&&(b=!0),c=window.open(z.util.add_http(a)),c&&(c.opener=null,b&&c.focus()),c},z.util.safe_mailto_open=function(a){var b;if(z.util.is_valid_email(a))return b=window.open("mailto:"+a),b?window.setTimeout(function(){return b.close()},10):void 0},z.util.auto_link_emails=function(a){var b;return b=/([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)/gim,a.replace(b,'<a onclick="z.util.safe_mailto_open(\'$1\')" href="#">$1</a>')},z.util.get_last_characters=function(a,b){return!(a.length<b)&&a.substring(a.length-b)},z.util.cut_last_characters=function(a,b){return a.substring(0,a.length-b)},z.util.markup_links=function(a){return a.replace(/<a\s+href=/gi,'<a target="_blank" rel="nofollow noopener noreferrer" href=')},z.util.render_message=function(a){return a=marked(a),a=z.util.auto_link_emails(a),a=a.replace(/\n/g,"<br />"),"<br />"===z.util.get_last_characters(a,"<br />".length)&&(a=z.util.cut_last_characters(a,"<br />".length)),a},z.util.ko_array_push_all=function(a,b){var c;return c=a(),a.valueWillMutate(),ko.utils.arrayPushAll(c,b),a.valueHasMutated()},z.util.ko_array_unshift_all=function(a,b){var c;return c=a(),a.valueWillMutate(),Array.prototype.unshift.apply(c,b),a.valueHasMutated()},z.util.ko_push_deferred=function(a,b,c,d){var e;return null==c&&(c=100),null==d&&(d=300),e=window.setInterval(function(){var d;if(d=b.splice(0,c),z.util.ko_array_push_all(a,d),0===b.length)return window.clearInterval(e)},d)},z.util.zero_padding=function(a,b){return null==b&&(b=2),a.toString().length<b?z.util.zero_padding("0"+a,b):""+a},z.util.format_timestamp=function(a,b){var c,d;return null==b&&(b=!0),d=moment(a),c="DD.MM.YYYY (HH:mm:ss)",b&&(c=moment().year()===d.year()?"ddd D MMM, HH:mm":"ddd D MMM YYYY, HH:mm"),d.format(c)},z.util.is_iso_string=function(a){return/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/.test(a)},z.util.sort_groups_by_last_event=function(a,b){return b.last_event_timestamp()-a.last_event_timestamp()},z.util.sort_object_by_keys=function(a,b){var c,d,e,f,g,h,i;if(h={},f=Object.keys(a),f.sort(),b)for(c=f.length-1;c>=0;c+=-1)e=f[c],i=a[e],h[e]=i;else for(d=0,g=f.length;d<g;d++)e=f[d],i=a[e],h[e]=i;return h},z.util.strip_url_wrapper=function(a){return a.replace(/^url\(["']?/,"").replace(/["']?\)$/,"")},z.util.naked_url=function(a){return null==a&&(a=""),a.toLowerCase().replace(/.*?:\/\//,"").replace(/\/$/,"").replace("www.","")},z.util.valid_profile_image_size=function(a,b,c,d){var e;return e=new Image,e.onload=function(){return d(e.width>=b&&e.height>=c)},e.src=window.URL.createObjectURL(a)},z.util.is_valid_email=function(a){var b;return b=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,b.test(a)},z.util.is_valid_phone_number=function(a){var b;return b="production"===z.util.Environment.backend.current?/^\+[1-9]\d{1,14}$/:/^\+[0-9]\d{1,14}$/,b.test(a)},z.util.is_valid_username=function(a){return a.startsWith("@")&&(a=a.substring(1)),/^[a-z_0-9]{2,21}$/.test(a)},z.util.murmurhash3=function(a,b){var c,d,e,f,g,h,i,j;for(c=3&a.length,d=a.length-c,e=b,g=3432918353,h=461845907,j=0;j<d;)i=255&a.charCodeAt(j)|(255&a.charCodeAt(++j))<<8|(255&a.charCodeAt(++j))<<16|(255&a.charCodeAt(++j))<<24,++j,i=(65535&i)*g+(((i>>>16)*g&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*h+(((i>>>16)*h&65535)<<16)&4294967295,e^=i,e=e<<13|e>>>19,f=5*(65535&e)+((5*(e>>>16)&65535)<<16)&4294967295,e=27492+(65535&f)+((58964+(f>>>16)&65535)<<16);switch(i=0,c){case 3:i^=(255&a.charCodeAt(j+2))<<16;case 2:i^=(255&a.charCodeAt(j+1))<<8;case 1:i^=255&a.charCodeAt(j),i=(65535&i)*g+(((i>>>16)*g&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*h+(((i>>>16)*h&65535)<<16)&4294967295,e^=i}return e^=a.length,e^=e>>>16,e=2246822507*(65535&e)+((2246822507*(e>>>16)&65535)<<16)&4294967295,e^=e>>>13,e=3266489909*(65535&e)+((3266489909*(e>>>16)&65535)<<16)&4294967295,(e^=e>>>16)>>>0},z.util.get_unix_timestamp=function(){return Math.floor(Date.now()/1e3)},z.util.get_first_name=function(a,b){if(null==b&&(b=z.string.Declension.NOMINATIVE),a.is_me){if(b===z.string.Declension.NOMINATIVE)return z.localization.Localizer.get_text(z.string.conversation_you_nominative);if(b===z.string.Declension.DATIVE)return z.localization.Localizer.get_text(z.string.conversation_you_dative);if(b===z.string.Declension.ACCUSATIVE)return z.localization.Localizer.get_text(z.string.conversation_you_accusative)}return a.first_name()},z.util.print_devices_id=function(a){var b,c,d,e,f,g;if(!a)return"";for(b=z.util.zero_padding(a,16),f="",g=b.match(/.{1,2}/g),c=0,d=g.length;c<d;c++)e=g[c],f+="<span class='device-id-part'>"+e+"</span>";return f},z.util.bucket_values=function(a,b){var c,d,e,f;if(a<b[0]+1)return"0";for(c=d=0,e=b.length;d<e;c=++d)if(f=b[c],a<f+1)return b[c-1]+1+"-"+f;return b[b.length-1]+1+"-"},z.util.format_time_remaining=function(a){var b,c;return b=moment.duration(a),c="",1===b.asHours()?c+=b.hours()+" "+z.localization.Localizer.get_text(z.string.ephememal_units_hour)+", ":b.asHours()>1&&(c+=b.hours()+" "+z.localization.Localizer.get_text(z.string.ephememal_units_hours)+", "),1===b.asMinutes()?c+=b.minutes()+" "+z.localization.Localizer.get_text(z.string.ephememal_units_minute)+" "+z.localization.Localizer.get_text(z.string.and)+" ":b.asMinutes()>1&&(c+=b.minutes()+" "+z.localization.Localizer.get_text(z.string.ephememal_units_minutes)+" "+z.localization.Localizer.get_text(z.string.and)+" "),1===b.asSeconds()?c+=b.seconds()+" "+z.localization.Localizer.get_text(z.string.ephememal_units_second):b.asSeconds()>1&&(c+=b.seconds()+" "+z.localization.Localizer.get_text(z.string.ephememal_units_seconds)),c||""}}.call(this),function(){null==window.z&&(window.z={}),null==z.util&&(z.util={}),z.util.protobuf={load_protos:function(a){return new Promise(function(b,c){return dcodeIO.ProtoBuf.loadProtoFile(a,function(a,d){return a?c(new Error("Loading protocol buffer file failed: "+a.message)):(null==z.proto&&(z.proto={}),_.extend(z.proto,d.build()),b())})})}}}.call(this),function(){window.z=window.z||{},z.util=z.util||{},z.util.KEYCODE={ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,BACKSPACE:46,DELETE:8,ENTER:13,ESC:27,V:86},z.util.KEYCODE.is_arrow_key=function(a){return a===z.util.KEYCODE.ARROW_DOWN||a===z.util.KEYCODE.ARROW_LEFT||a===z.util.KEYCODE.ARROW_RIGHT||a===z.util.KEYCODE.ARROW_UP}}.call(this),function(){var a;null==window.z&&(window.z={}),null==z.util&&(z.util={}),null==(a=z.util).KeyUtil&&(a.KeyUtil={}),z.util.KeyUtil.insert_at_caret=function(a,b){var c,d,e,f,g,h,i;if(a)return h=a.scrollTop,i=0,d=a.selectionStart||"0"===a.selectionStart?"ff":!!document.selection&&"ie","ie"===d?(a.focus(),g=document.selection.createRange(),g.moveStart("character",-a.value.length),i=g.text.length):"ff"===d&&(i=a.selectionStart),e=a.value.substring(0,i),c=a.value.substring(i,a.value.length),a.value=e+b+c,i+=b.length,"ie"===d?(a.focus(),f=document.selection.createRange(),f.moveStart("character",-a.value.length),f.moveStart("character",i),f.moveEnd("character",0),f.select()):"ff"===d&&(a.selectionStart=i,a.selectionEnd=i,a.focus()),a.scrollTop=h}}.call(this),function(){var a;null==window.z&&(window.z={}),null==z.util&&(z.util={}),null==(a=z.util).LocalizerUtil&&(a.LocalizerUtil={}),z.util.LocalizerUtil.join_names=function(a,b){var c,d;return null==b&&(b=z.string.Declension.ACCUSATIVE),c=function(){var c,e,f;for(f=[],c=0,e=a.length;c<e;c++)d=a[c],f.push(z.util.get_first_name(d,b));return f}().join(", "),c.replace(/,(?=[^,]*$)/," "+z.localization.Localizer.get_text(z.string.and))}}.call(this),function(){var a;a=new marked.Renderer,a.paragraph=function(a){return a.replace(/\n$/,"")+"\n"},marked.setOptions({highlight:function(a){return hljs.highlightAuto(a).value},renderer:a})}.call(this),function(){moment.fn.is_today=function(){return this.isSame(new Date,"d")},moment.fn.is_current_year=function(){return this.isSame(new Date,"y")},moment.fn.is_same_day=function(a){return this.isSame(a,"d")},moment.fn.is_same_month=function(a){return this.isSame(a,"M")}}.call(this),function(){null==window.z&&(window.z={}),null==z.util&&(z.util={}),z.util.NumberUtil={in_range:function(a,b,c){return a>=b&&a<=c},root_mean_square:function(a){var b,c;return b=a.map(function(a){return Math.pow(a,2)}),c=b.reduce(function(a,b){return a+b}),Math.sqrt(c)/a.length},cap_to_byte:function(a){var b;return b=255,Math.min(Math.abs(parseInt(a*b,10)),b)}}}.call(this),window.z=window.z||{},window.z.util=z.util||{},z.util.ObjectUtil={map_recursive(a,b){if("object"!=typeof a)return b(a);const c={};for(const d in a)a.hasOwnProperty(d)&&(c[d]=z.util.ObjectUtil.map_recursive(a[d],b));return c},escape_properties(a){return z.util.ObjectUtil.map_recursive(a,_.escape)}},function(){$.fn.confirm=function(a){var b,c,d,e,f,g,h,i;return i=$(a.template).html(),f=$(this),f.append(i),b=f.find(".confirm"),c=f.find(".participants-group"),e=!0,d=c.hasClass("small"),d&&c.removeClass("small"),ko.applyBindings(a.data,b[0]),null!=(null!=(g=a.data)?g.user:void 0)&&(h=a.data.user.first_name(),f.find(".user").html(z.util.escape_html(h))),window.requestAnimationFrame(function(){return b.addClass("confirm-is-visible")}),this.destroy=function(){return e=!1,ko.cleanNode(b[0]),d&&c.addClass("small"),f.find(".confirm").remove()},this.is_visible=function(){return e},$('[data-action="cancel"]',b).click(function(b){return function(){return"function"==typeof a.cancel&&a.cancel(a.data),b.destroy()}}(this)),$('[data-action="confirm"]',b).click(function(b){return function(){return"function"==typeof a.confirm&&a.confirm(a.data),b.destroy()}}(this)),this}}.call(this),function(){var a,b=function(a,b){return function(){return a.apply(b,arguments)}};a=6e4,null==window.z&&(window.z={}),null==z.conversation&&(z.conversation={}),z.util.PromiseQueue=function(){function c(c){null==c&&(c={}),this.pause=b(this.pause,this),this.execute=b(this.execute,this),this.push=b(this.push,this),this.logger=new z.util.Logger("z.util.PromiseQueue",z.config.LOGGER.OPTIONS),this._timeout=c.timeout||a,this._promises=[],this._queue=[],this._blocked=!1,this._interval=void 0,this._paused=!1}return c.prototype.push=function(a){return new Promise(function(b){return function(c,d){var e;return e={function:a,resolve:c,reject:d},b._queue.push(e),b.execute()}}(this))},c.prototype.execute=function(){var a;if(!this._paused&&!this._blocked)return a=this._queue[0],a?(this._blocked=!0,this._interval=window.setInterval(function(a){return function(){if(!a._paused)return a._blocked=!1,window.clearInterval(a._interval),a.logger.error("Promise queue failed, unblocking queue",a._queue),a.execute()}}(this),this._timeout),a.function().catch(function(b){return a.reject(b)}).then(function(b){return function(c){return a.resolve(c),window.clearInterval(b._interval),b._blocked=!1,window.setTimeout(function(){return b._queue.shift(),b.execute()},0)}}(this))):void 0},c.prototype.pause=function(a){if(this._paused=a,!1===this._paused)return this.execute()},c}()}.call(this),function(){$.fn.scroll_end=function(){var a;if(a=$(this).get(0))return a.scrollHeight-a.clientHeight},$.fn.scroll_to_bottom=function(){var a;if(a=$(this),0!==a.length)return a.scrollTop(a[0].scrollHeight),window.setTimeout(function(b){return function(){if(!$(b).is_scrolled_bottom())return a.scrollTop(a[0].scrollHeight)}}(this),200)},$.fn.scroll_by=function(a){var b,c;if(b=$(this),0!==b.length)return c=b[0].scrollTop,b.scrollTop(c+a)},$.fn.is_scrolled_bottom=function(a){var b,c,d,e;if(null==a&&(a=0),b=$(this),0!==b.length)return e=Math.ceil(b.scrollTop()),d=b[0].scrollHeight,c=b[0].clientHeight,e+c+a>=d},$.fn.is_scrolled_top=function(){var a;if(a=$(this),0!==a.length)return 0===a.scrollTop()},$.fn.is_scrollable=function(){var a;if(a=$(this).get(0))return a.scrollHeight>a.clientHeight}}.call(this),function(){var a;null==window.z&&(window.z={}),null==z.util&&(z.util={}),null==(a=z.util).Statistics&&(a.Statistics={}),z.util.Statistics.average=function(a){return(z.util.Statistics.sum(a)/a.length).toFixed(2)},z.util.Statistics.sum=function(a){return a.reduce(function(a,b){return a+b},0)},z.util.Statistics.standard_deviation=function(a,b){var c;return b||(b=z.util.Statistics.average(a)),c=a.map(function(a){var c;return(c=a-b)*c}),Math.sqrt(z.util.Statistics.average(c)).toFixed(2)}}.call(this),function(){var a;null==window.z&&(window.z={}),null==z.util&&(z.util={}),null==(a=z.util).StorageUtil&&(a.StorageUtil={}),z.util.StorageUtil.get_value=function(a){return amplify.store(a)},z.util.StorageUtil.reset_value=function(a){return z.util.StorageUtil.set_value(a,null)},z.util.StorageUtil.set_value=function(a,b,c){return c?amplify.store(a,b,{expires:1e3*c}):amplify.store(a,b)}}.call(this),function(){null==window.z&&(window.z={}),null==z.util&&(z.util={}),z.util.StringUtil={capitalize_first_char:function(a){return null==a&&(a=""),""+a.charAt(0).toUpperCase()+a.substring(1)},compare_transliteration:function(a,b){return z.util.StringUtil.includes(window.getSlug(a),window.getSlug(b))},format:function(){var a,b,c,d,e;for(e=arguments[0],b=a=0,c=arguments.length;0<=c?a<c:a>c;b=0<=c?++a:--a)d=new RegExp("\\{"+b+"\\}","gm"),e=e.replace(d,arguments[++b]);return e},get_first_character:function(a){var b,c;return c=new RegExp(/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])/),b=c.exec(a),b&&0===b.index?b[0]:a[0]},get_random_character:function(){for(var a;!(z.util.NumberUtil.in_range(a,1,9)||z.util.NumberUtil.in_range(a,65,90)||z.util.NumberUtil.in_range(a,97,122));)a=Math.floor(122*Math.random());return a<=9?a:String.fromCharCode(a)},includes:function(a,b){return null==a&&(a=""),null==b&&(b=""),a.toLowerCase().includes(b.toLowerCase())},obfuscate:function(a){var b,c,d,e,f;for(b=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","x","y","z"],f="",d=0,e=a.length;d<e;d++)c=a[d],c.match(/[\n\r\s]+/gi)?f+=c:f+=z.util.ArrayUtil.random_element(b);return f},remove_line_breaks:function(a){return null==a&&(a=""),a.replace(/(\r\n|\n|\r)/gm,"")},sort_by_priority:function(a,b,c){if(null==a&&(a=""),null==b&&(b=""),a=a.toLowerCase(),b=b.toLowerCase(),c)if(z.util.StringUtil.starts_with(a,c)){if(!z.util.StringUtil.starts_with(b,c))return-1}else if(z.util.StringUtil.starts_with(b,c)&&!z.util.StringUtil.starts_with(a,c))return 1;return a<b?-1:a>b?1:0},starts_with:function(a,b){return null==a&&(a=""),a.toLowerCase().startsWith(b.toLowerCase())},trim_line_breaks:function(a){return null==a&&(a=""),a.replace(/^\s+|\s+$/g,"")},truncate:function(a,b,c){var d;return null==c&&(c=!0),a.length>b&&(d=b-1,c&&a.lastIndexOf(" ",b-1)>b-25&&(d=a.lastIndexOf(" ",b-1)),a=a.substr(0,d)+"…"),a}}}.call(this),function(){null==window.z&&(window.z={}),null==z.util&&(z.util={}),z.util.CountryCodes=function(){var a,b,c;return c=function(b){var c,d,e;for(d=0,e=a.length;d<e;d++)if(c=a[d],c.iso===b)return c.code},b=function(b){var c,d,e,f,g;for(c=[],e=0,f=a.length;e<f;e++)d=a[e],d.code===window.parseInt(b,10)&&c.push(d);return c=c.sort(function(a,b){return a.population-b.population}),null!=(g=c.pop())?g.iso:void 0},a=[{code:93,iso:"AF",name:"Afghanistan",population:31},{code:355,iso:"AL",name:"Albania",population:2},{code:213,iso:"DZ",name:"Algeria",population:34},{code:1684,iso:"AS",name:"American Samoa",population:0},{code:376,iso:"AD",name:"Andorra",population:0},{code:244,iso:"AO",name:"Angola",population:13},{code:1264,iso:"AI",name:"Anguilla",population:0},{code:672,iso:"AQ",name:"Antarctica",population:0},{code:1268,iso:"AG",name:"Antigua and Barbuda",population:0},{code:54,iso:"AR",name:"Argentina",population:41},{code:374,iso:"AM",name:"Armenia",population:2},{code:297,iso:"AW",name:"Aruba",population:0},{code:61,iso:"AU",name:"Australia",population:21},{code:43,iso:"AT",name:"Austria",population:8},{code:994,iso:"AZ",name:"Azerbaijan",population:8},{code:1242,iso:"BS",name:"Bahamas",population:0},{code:973,iso:"BH",name:"Bahrain",population:0},{code:880,iso:"BD",name:"Bangladesh",population:171},{code:1246,iso:"BB",name:"Barbados",population:0},{code:375,iso:"BY",name:"Belarus",population:9},{code:32,iso:"BE",name:"Belgium",population:10},{code:501,iso:"BZ",name:"Belize",population:0},{code:229,iso:"BJ",name:"Benin",population:9},{code:1441,iso:"BM",name:"Bermuda",population:0},{code:975,iso:"BT",name:"Bhutan",population:0},{code:591,iso:"BO",name:"Bolivia",population:9},{code:387,iso:"BA",name:"Bosnia and Herzegovina",population:4},{code:267,iso:"BW",name:"Botswana",population:2},{code:55,iso:"BR",name:"Brazil",population:201},{code:246,iso:"IO",name:"British Indian Ocean Territory",population:0},{code:1284,iso:"VG",name:"British Virgin Islands",population:0},{code:673,iso:"BN",name:"Brunei",population:0},{code:359,iso:"BG",name:"Bulgaria",population:7},{code:226,iso:"BF",name:"Burkina Faso",population:16},{code:257,iso:"BI",name:"Burundi",population:9},{code:855,iso:"KH",name:"Cambodia",population:14},{code:237,iso:"CM",name:"Cameroon",population:19},{code:1,iso:"CA",name:"Canada",population:33},{code:238,iso:"CV",name:"Cape Verde",population:0},{code:1345,iso:"KY",name:"Cayman Islands",population:0},{code:236,

OS: Debian Linux 9.0 (testing), Firefox 50.1.0

Screenshot attached. bildschirmfoto_2017-04-26_13-11-16

maximbaz commented 7 years ago

Wait for an official answer, but I think Firefox < 52 is not supported.

gregor commented 7 years ago

With the upcoming release we will be blocking Firefox for versions below 52 again. We are migrating all of our coffeescript code to plain es6 and can no longer maintain compatibility with older Firefox version. Firefox 52 is current an ESR candidate and will be the sole ESR version supported by Firefox in just a few weeks. Please update Firefox or use our Linux app.

n1trux commented 7 years ago

That's kinda sad because the current stable Debian 8 "jessie" still has Firefox aka Iceweasel 45.9 ESR and requiring v52 would lock out hundreds of thousands of users worldwide which use Debian stable or a derivative of that distribution.

If someone finds this Issue with a search engine, the NOT ADVISABLE route to get a current firefox on Debian is installing it from experimental.