Skip to content

Commit

Permalink
feat(browser): add browser to plugin.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed May 8, 2016
1 parent a499eec commit ac91b82
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,27 @@
<param name="ios-package" value="QRScanner"/>
</feature>
</config-file>

<header-file src="src/ios/QRScanner-Bridging-Header.h" />
<source-file src="src/ios/QRScanner.swift"/>
</platform>

<platform name="browser">
<config-file target="config.xml" parent="/*">
<feature name="QRScanner">
<param name="browser-package" value="QRScanner" />
</feature>
</config-file>
<js-module src="src/browser/QRScannerProxy.js" name="QRScannerProxy">
<runs />
</js-module>
<js-module src="src/browser/qrcode-reader.js" name="QRCode">
<runs />
<clobbers target="window.QRCode" />
</js-module>
<js-module src="src/browser/adapter.js" name="AdapterJs">
<runs />
<clobbers target="window.getUserMedia" />
</js-module>
</platform>

</plugin>

0 comments on commit ac91b82

Please sign in to comment.