mirror of https://github.com/calzoneman/sync.git
Fix initialization race condition and make it toggleable
This commit is contained in:
parent
af663bfbcf
commit
050dec4d0f
|
@ -12,8 +12,7 @@ var YouTube = require("cytube-mediaquery/lib/provider/youtube");
|
||||||
var Vimeo = require("cytube-mediaquery/lib/provider/vimeo");
|
var Vimeo = require("cytube-mediaquery/lib/provider/vimeo");
|
||||||
var Vidme = require("cytube-mediaquery/lib/provider/vidme");
|
var Vidme = require("cytube-mediaquery/lib/provider/vidme");
|
||||||
var Streamable = require("cytube-mediaquery/lib/provider/streamable");
|
var Streamable = require("cytube-mediaquery/lib/provider/streamable");
|
||||||
require("cytube-mediaquery/lib/provider/googledrive").setHTML5HackEnabled(
|
var GoogleDrive = require("cytube-mediaquery/lib/provider/googledrive");
|
||||||
Config.get("google-drive.html5-hack-enabled"));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Preference map of quality => youtube formats.
|
* Preference map of quality => youtube formats.
|
||||||
|
@ -502,6 +501,7 @@ var Getters = {
|
||||||
|
|
||||||
/* google docs */
|
/* google docs */
|
||||||
gd: function (id, callback) {
|
gd: function (id, callback) {
|
||||||
|
GoogleDrive.setHTML5HackEnabled(Config.get("google-drive.html5-hack-enabled"));
|
||||||
var data = {
|
var data = {
|
||||||
type: "googledrive",
|
type: "googledrive",
|
||||||
kind: "single",
|
kind: "single",
|
||||||
|
|
Loading…
Reference in New Issue