Last active
December 15, 2015 14:29
-
-
Save luv2code/5274902 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ko = window.ko; | |
if( !ko){ | |
if(typeof window.require === 'function') { | |
try{ | |
ko = require('ko'); | |
} catch { /*ingore */ } | |
try{ | |
ko = require('knockout'); | |
} catch { /*ingore */ } | |
} | |
if(!ko) { | |
return {error:"knockout.js is not used in the page (ko is undefined). Maybe u are using iFrames, if so, browse to the url of the frame and try again."}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment