mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-02 20:30:09 +00:00
started adding basic CEF/PhoneGap bindings...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a731a64346
commit
20d6b0b019
20
ui/data.js
20
ui/data.js
@ -607,6 +607,26 @@ function preCacheAllRibbons(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* Extension API (CEF/PhoneGap/...)
|
||||||
|
*/
|
||||||
|
|
||||||
|
function loadJSONFile(path){
|
||||||
|
// CEF
|
||||||
|
if(window.CEF_loadJSON != null){
|
||||||
|
var json = CEF_loadJSON(path)
|
||||||
|
if(json.version == null){
|
||||||
|
json = convertDataGen1(json)
|
||||||
|
}
|
||||||
|
return loadData(json)
|
||||||
|
|
||||||
|
// PhoneGap
|
||||||
|
} else if(false) {
|
||||||
|
// XXX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Setup
|
* Setup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user