Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am durk on github.
  • I am dj_hoek (https://keybase.io/dj_hoek) on keybase.
  • I have a public key ASBFWqrMXvnJ_zvlE9dW3UZDREg6YSpgx2fU96v-zdyb9wo

To claim this, I am signing this object:

@DURK
DURK / 040_ios9_apply_fix.js
Created September 11, 2015 09:45
Cordova-hook to apply fix only to iOS platform
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var targetFile = path.resolve(__dirname, '../../platforms/ios/www/index.html');
var to_replace = '<!-- INSERT_iOS9_PATCH -->';
var replace_with = '<script src="js/libs/ios9-browser-fix.js"></script>';
replace_string_in_file(targetFile, to_replace, replace_with);
@DURK
DURK / 030_disable_icloud_webstorage.js
Created February 17, 2015 13:37
Cordova-hook to disable webstorage backups in iCloud
#!/usr/bin/env node
/**
* After prepare, the iOS BackupWebStorage preference will be disabled.
* We already disabled it in www/config.xml, but there's an issue in Cordova (or a plugin?) that makes it ignore this.
* See: https://issues.apache.org/jira/browse/CB-8327
*/
var fs = require('fs');
var path = require('path');
Karma issue: hangs on browser().navigateTo()
Target-page is shown in debug-mode, but it doesn't execute the following tests.
Status remains "Chrome 27.0 (Windows) is executing"
I'm using:
Karma 0.8.5 and 0.9.2
Node 0.10.7
Angular 1.0.7 and 1.1.5
Chrome 27.0.1453.110