mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-28 10:18:21 +01:00
safari bug when booting
This commit is contained in:
parent
acef96f337
commit
39eca2c53d
@ -107,19 +107,20 @@ self.OS.GUI =
|
|||||||
js = path + "/main.js"
|
js = path + "/main.js"
|
||||||
|
|
||||||
js.asFileHandler().read (d) ->
|
js.asFileHandler().read (d) ->
|
||||||
|
# load app meta data
|
||||||
|
"#{path}/package.json".asFileHandler().read (data) ->
|
||||||
|
data.path = path
|
||||||
|
_OS.APP[app].meta = data if _OS.APP[app]
|
||||||
|
_OS.APP[v].meta = data for v in data.services if data.services
|
||||||
#load css file
|
#load css file
|
||||||
css = "#{path}/main.css"
|
css = "#{path}/main.css"
|
||||||
css.asFileHandler().onready (d) ->
|
css.asFileHandler().onready (d) ->
|
||||||
el = $ '<link>', { rel: 'stylesheet', type: 'text/css', 'href': "#{_API.handler.get}/#{css}" }
|
el = $ '<link>', { rel: 'stylesheet', type: 'text/css', 'href': "#{_API.handler.get}/#{css}" }
|
||||||
.appendTo 'head'
|
.appendTo 'head'
|
||||||
_OS.APP[app].style = el[0] if _OS.APP[app]
|
_OS.APP[app].style = el[0] if _OS.APP[app]
|
||||||
|
ok app
|
||||||
, () ->
|
, () ->
|
||||||
#launch
|
#launch
|
||||||
# load app meta data
|
|
||||||
"#{path}/package.json".asFileHandler().read (data) ->
|
|
||||||
data.path = path
|
|
||||||
_OS.APP[app].meta = data if _OS.APP[app]
|
|
||||||
_OS.APP[v].meta = data for v in data.services if data.services
|
|
||||||
ok app
|
ok app
|
||||||
, "json"
|
, "json"
|
||||||
#ok app
|
#ok app
|
||||||
|
Loading…
Reference in New Issue
Block a user