Skip to content

Instantly share code, notes, and snippets.

@travist
Created May 14, 2012 14:31
Show Gist options
  • Save travist/2694333 to your computer and use it in GitHub Desktop.
Save travist/2694333 to your computer and use it in GitHub Desktop.
To use weinre to debug mobile Drupal sites.
/**
* Add this to your module file.
*/
function mymodule_init() {
drupal_add_js('http://192.168.1.5:8080/target/target-script-min.js#anonymous', array(
'type' => 'external',
'group' => JS_LIBRARY,
'weight' => -1000
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment