mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
null check for dbhash presence
This commit is contained in:
parent
b168a3e724
commit
882378f6f9
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue