1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-07 22:45:24 +02:00

null check for dbhash presence

This commit is contained in:
Harvey Kandola 2016-05-10 15:02:28 -07:00
parent b168a3e724
commit 882378f6f9

View file

@ -143,8 +143,12 @@ export default Ember.Service.extend({
// Application boot process
boot() {
let self = this;
let dbhash = "";
if (is.not.null(document.head.querySelector("[property=dbhash]"))) {
dbhash = document.head.querySelector("[property=dbhash]").content;
}
let dbhash = document.head.querySelector("[property=dbhash]").content;
if (dbhash.length > 0 && dbhash !== "{{.DBhash}}") {
self.get('appMeta').set('orgId', "response.orgId");
self.get('appMeta').setSafe('title', "Documize Setup");