Fix initialization race condition and make it toggleable

This commit is contained in:
calzoneman 2016-08-11 20:25:06 -07:00
parent af663bfbcf
commit 050dec4d0f
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,7 @@ var YouTube = require("cytube-mediaquery/lib/provider/youtube");
var Vimeo = require("cytube-mediaquery/lib/provider/vimeo");
var Vidme = require("cytube-mediaquery/lib/provider/vidme");
var Streamable = require("cytube-mediaquery/lib/provider/streamable");
require("cytube-mediaquery/lib/provider/googledrive").setHTML5HackEnabled(
Config.get("google-drive.html5-hack-enabled"));
var GoogleDrive = require("cytube-mediaquery/lib/provider/googledrive");
/*
* Preference map of quality => youtube formats.
@ -502,6 +501,7 @@ var Getters = {
/* google docs */
gd: function (id, callback) {
GoogleDrive.setHTML5HackEnabled(Config.get("google-drive.html5-hack-enabled"));
var data = {
type: "googledrive",
kind: "single",